Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp48400lqe; Fri, 5 Apr 2024 12:08:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUpZ6//cWz6SHzEj6ZqM3EtiYDtm6h1Sl8sAYFxnkQwNM833XIMVSLJvtXrMu/LtIAJspl66EM9wDHNwTpqC9ZTX0ThdvUh8IIku/f7hw== X-Google-Smtp-Source: AGHT+IFA5nJ7pDsCfKfs8AKFhK9jD7uaFAgKnB/+tweIbvIzgXib/SE0kIYHCyTqCCwsaNTPy+h0 X-Received: by 2002:a05:6214:5183:b0:698:f698:bfd5 with SMTP id kl3-20020a056214518300b00698f698bfd5mr2680690qvb.44.1712344134707; Fri, 05 Apr 2024 12:08:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712344134; cv=pass; d=google.com; s=arc-20160816; b=CQGBvwDlZ05/+g7bFm4q0suj4XfWSaEfsL9tHG5qNTiwfbdI5kASd7sMPbkMGOZ7yk VkdlrkjXNIXbqCn6IEJZjtvSyTmb5WxeSBmvn3r7KlINynK9sI1MX3rTAwbGZkdZDvam +LjRNZOx66kZuIizsXMn0a2tLRAuzlVMwBT6WE5Hv3g3zDlsZRJb+BBaPpvlJ1045b7o sPewcxpXeUgUWZK+0YXO7fM33Ba2oCYLapd/YioNNFPZ7gAGwOT+oo0pYPFh2LCAUqpn H78JTyZf6jq6Ami0tbaDOT1DbxYZiHmXuDOfUXnKM/XbO1qse6B2yuv7BJKiIrk485js 1GGw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:to:cc:in-reply-to:date:subject:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:message-id:from :dkim-signature; bh=mkNZFLe3eGmgKHUGgYKucnDtOH0VAjv+69uvwH85wU4=; fh=pvSbjaviodjmhxpIGVxoQkLDwwXEHjd9a9OtjTtkhAk=; b=zNpRNIVAvCqMMHSBH8PfZ2uAbhfwp/pTYPGmSHTR9yadZsmyfDbHWmUWv7cBTUEik2 sW4j7YABOFE5fnKH68gy4eN/Ynzan5Zl9FI987K+a8IkJzEZJpvT/hhuCscmMaUKqBHq SoDRASPdA9kDffct4Y3ZxgG4k7Y//z+yA85I+jj9aJMfJzF2eC4EZ+oP0QiJyDjl0vap kGVo7U4+QXcoahkzPrCF969qnoCrflSsLxAY+Xl10DJzcyIhEo2pI+WlNJkn8TCkIZLN wAULAbs1KHgIAc9EEVUppWF5V8KMgQYmtzl5WbO4q2va164LsXPX8ivlbgHIMMMECN6s 2Z9g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@dilger-ca.20230601.gappssmtp.com header.s=20230601 header.b=XHwvhxjs; arc=pass (i=1 spf=pass spfdomain=dilger.ca dkim=pass dkdomain=dilger-ca.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-133510-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133510-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id x14-20020a0cfe0e000000b0069686d347eesi2466797qvr.232.2024.04.05.12.08.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 12:08:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-133510-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@dilger-ca.20230601.gappssmtp.com header.s=20230601 header.b=XHwvhxjs; arc=pass (i=1 spf=pass spfdomain=dilger.ca dkim=pass dkdomain=dilger-ca.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-133510-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133510-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 5A36D1C20A41 for ; Fri, 5 Apr 2024 19:08:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5A2C0172BAD; Fri, 5 Apr 2024 19:08:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=dilger-ca.20230601.gappssmtp.com header.i=@dilger-ca.20230601.gappssmtp.com header.b="XHwvhxjs" Received: from mail-pf1-f181.google.com (mail-pf1-f181.google.com [209.85.210.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8E07116D328 for ; Fri, 5 Apr 2024 19:08:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712344124; cv=none; b=kIqs4nAAKlAyZOJOKHTmZiUave5lTJ4Rpfn0Gt0G6+Pjh9DXXvoqijPv55/IultiDH/EkjaCe9rMlgrIlFc3LCB1HNT6S4tQk7MumPm3/zwLdXnZPYqZQTzgp6rNgn8EbRDC58X6dghQqD0yXygb2Ft88yUJT7sS3KkCd3VB2dw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712344124; c=relaxed/simple; bh=wye5veq5Kp9vNO8lurg4CiJ01Its6dfKvlbVtm98pW4=; h=From:Message-Id:Content-Type:Mime-Version:Subject:Date: In-Reply-To:Cc:To:References; b=s1PbdR28O6w8LsBC3ki8atyBAD05BV30m14pg1SQ2vx+CtZgEjjBtplv5AAbat3Cuaz+2A73RZctS1NXPpQA+dXOstrNtelb7042IkFRC5E1HV2qNGE578mYeoZrZgfpRlZJrF/WvkiTUPFHQDk/4E3+nTkM59hX6noNprKXQAY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=dilger.ca; spf=pass smtp.mailfrom=dilger.ca; dkim=pass (2048-bit key) header.d=dilger-ca.20230601.gappssmtp.com header.i=@dilger-ca.20230601.gappssmtp.com header.b=XHwvhxjs; arc=none smtp.client-ip=209.85.210.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=dilger.ca Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=dilger.ca Received: by mail-pf1-f181.google.com with SMTP id d2e1a72fcca58-6e703e0e5deso2278218b3a.3 for ; Fri, 05 Apr 2024 12:08:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dilger-ca.20230601.gappssmtp.com; s=20230601; t=1712344122; x=1712948922; darn=vger.kernel.org; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:from:to:cc:subject:date:message-id:reply-to; bh=mkNZFLe3eGmgKHUGgYKucnDtOH0VAjv+69uvwH85wU4=; b=XHwvhxjsXX69ebrhUQOUO0vUoYYhBRF7SV6PqgR+jr4a930iM+DOmU95V1AYy+W1Gw SJkS8W0rJMknuH/+wCGv2p2VcTEJuiLDXGg8OLUOz5Vh9GaabTbgo5rrrMIZ1cAllWxj kor5bmGOcjCEYM2jGbxxevTa6acmGPknYyJwQiAFkg5rbwdImpCqg1NgxIuSQ9Wrtbwz Rc97zYMyZR1heGBVWI0zUO1YkJay3BFJ3vk6FxsOpIxUr3JNttz4KG2IihTBEyq7cTYc TmZscjV2dL+fFNGjP9j2CrJUqzjF03ZAplvln015NaoE6tYZcmw9yDm7TF1pz5LCeZNY c4lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712344122; x=1712948922; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=mkNZFLe3eGmgKHUGgYKucnDtOH0VAjv+69uvwH85wU4=; b=hA8iqpxX3sB70nhNTbjFcwjvQimm9cXThpWd0ID/Zgpk+Mab4MjUxeELju9omTBJlk ACmOr0RHUADLw3t66GiV3u/CBLHrnOuf/LbQa9Ak0jz7OGmT/jL+EE5/c5lc+mqcrV+K JpGnSlvJQsCXUiGIqr+YYG0zlERTc1Tlomjxo0UewQ4oPlSHwzc9tDMK1X6uqo1ReFwY fcP41xBAeIZlM2Oa5E0IoDU0nLJZDXLOd7aaV1BxvuA6jEu7yUQUaaMj4LhVk1nU0qF1 xf1voNafzpIJN2JMGD1Nj1ZOPx2e/YBmicXnhNvYToSliRmZxQXFDX1rNPZAKxAoDNwe VnuA== X-Forwarded-Encrypted: i=1; AJvYcCWGXRkx5LgOns1vJqPJ1sGg6WVxJBBbK9yaeMq7cUGK9EVsbID7whl8kFuOXbaho+5ti89SvOcIlfow/mNkug7u30+WBgA0ykDRvrJD X-Gm-Message-State: AOJu0YwkhDTL2akib5jn41hVwJZtlmyJxooWx8K0KKWahfozr3dqhTjZ +NWldB6Y/M+tJ1sRLPnDsDHbUjrGYawRvCWzCqvXKe1RxZnLDTFJDbMGqxrS3lw= X-Received: by 2002:a05:6a20:96ce:b0:1a7:1b6e:4d4 with SMTP id hq14-20020a056a2096ce00b001a71b6e04d4mr2293973pzc.23.1712344121925; Fri, 05 Apr 2024 12:08:41 -0700 (PDT) Received: from cabot.adilger.int (S01068c763f81ca4b.cg.shawcable.net. [70.77.200.158]) by smtp.gmail.com with ESMTPSA id x3-20020a056a00270300b006e6c61b264bsm1861757pfv.32.2024.04.05.12.08.40 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 05 Apr 2024 12:08:41 -0700 (PDT) From: Andreas Dilger Message-Id: <9F887394-68D4-4C2B-A5FA-1CA3D83C0E31@dilger.ca> Content-Type: multipart/signed; boundary="Apple-Mail=_14FE9033-705D-4B95-9114-3A0DB8FFDFB4"; protocol="application/pgp-signature"; micalg=pgp-sha256 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: [PATCH v3 04/13] btrfs: fiemap: emit new COMPRESSED state. Date: Fri, 5 Apr 2024 13:10:50 -0600 In-Reply-To: Cc: Jonathan Corbet , Kent Overstreet , Brian Foster , Chris Mason , Josef Bacik , David Sterba , Jaegeuk Kim , Chao Yu , Alexander Viro , Christian Brauner , Jan Kara , =?utf-8?Q?Micka=C3=ABl_Sala=C3=BCn?= , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-bcachefs@vger.kernel.org, linux-btrfs@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-fsdevel@vger.kernel.org, kernel-team@meta.com To: Sweet Tea Dorminy References: X-Mailer: Apple Mail (2.3273) --Apple-Mail=_14FE9033-705D-4B95-9114-3A0DB8FFDFB4 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On Apr 3, 2024, at 1:22 AM, Sweet Tea Dorminy = wrote: >=20 > Signed-off-by: Sweet Tea Dorminy I would recommend to merge this with the 05/13 patch that is setting the = btrfs fe_physical_length field. Otherwise, by itself it would be confusing = that the DATA_COMPRESSED flag is set on the extent without fe_physical_length = being set to be able to do anything with that information. Cheers, Andreas > --- > fs/btrfs/extent_io.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >=20 > diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c > index 9e421d99fd5c..e9df670ef7d2 100644 > --- a/fs/btrfs/extent_io.c > +++ b/fs/btrfs/extent_io.c > @@ -2706,7 +2706,7 @@ static int emit_fiemap_extent(struct = fiemap_extent_info *fieinfo, > if (range_end <=3D cache_end) > return 0; >=20 > - if (!(flags & (FIEMAP_EXTENT_ENCODED | = FIEMAP_EXTENT_DELALLOC))) > + if (!(flags & (FIEMAP_EXTENT_DATA_COMPRESSED | = FIEMAP_EXTENT_DELALLOC))) > phys +=3D cache_end - offset; >=20 > offset =3D cache_end; > @@ -3236,7 +3236,7 @@ int extent_fiemap(struct btrfs_inode *inode, = struct fiemap_extent_info *fieinfo, > } >=20 > if (compression !=3D BTRFS_COMPRESS_NONE) > - flags |=3D FIEMAP_EXTENT_ENCODED; > + flags |=3D FIEMAP_EXTENT_DATA_COMPRESSED; >=20 > if (extent_type =3D=3D BTRFS_FILE_EXTENT_INLINE) { > flags |=3D FIEMAP_EXTENT_DATA_INLINE; > -- > 2.43.0 >=20 >=20 Cheers, Andreas --Apple-Mail=_14FE9033-705D-4B95-9114-3A0DB8FFDFB4 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org iQIzBAEBCAAdFiEEDb73u6ZejP5ZMprvcqXauRfMH+AFAmYQTLoACgkQcqXauRfM H+C+JQ//RVIWVVU/mmIMIfM6I9hUuz7AfHU8nZHDzMf0XKVq1fPsPxlz3WC0eqzb N63IB1Y3xTT8BUPsdhOcXiC0Q5SDrROjCOh2CMRJRP/SgeywDX0+li+M71DeeHMW sL8gzCbjhZ6lHI2Minq2RVg3ZsJWbgr22+dFhbO+sIGlz1pHJb8rydIIqno9I40R PuZD4dcDqktEBOpZgaZL/OcL2umYLxC0//7rWiYrzfTkuCfu6Otg/f4UfoPrnGfC IwLknC6eji2x6CZTvz1iCYExpIJxRjNLpHN8QQs32rgVSXmA381ozvky63rRfSS6 LepXDGf8L7p4YaLJLyOfqmj+mFCO8UW7uVJPH4n1PBJprNFYrhRkZE0iL0IHA2Ac R8yPgy4AVHHf2k9fqKnWT/5e9or6lSV4v6/xEC+UxoVspWqgBjqmb/x78S5PzwSY jEmEV2iBGV7wgXU7TCF5oPfRli4Ot5CxnpNRbAHGdsIZmrepducQZhZ57ERjTqRh uSn82O4EAjULOLFdaBZgSCU/u96PPd4Y7WeRKH6PygtKtCi2EODw6NONuF5Q8SVQ PzQXbvmyP4JyU0K/UaaQQMFFLWjQlnkhqoZzxeieoVQ9ejl+8NKFNnkdnweNSRB0 RLt57nqqwJAbZjX8XYBpO2i5zTuN/l0/QTP/Y9ZQFy2vE++z44g= =ixIP -----END PGP SIGNATURE----- --Apple-Mail=_14FE9033-705D-4B95-9114-3A0DB8FFDFB4--