Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp51981lqe; Fri, 5 Apr 2024 12:15:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUs/8uzw6OsZ9T0qXWPgLAKgVBuYpzKXZmK+AihZZnuKY/fFivEyXvtoG4cAHboAMQSBUKtyXUgjTw3Y1Ak40cp+Oo/nr6yj/mjLdDqMw== X-Google-Smtp-Source: AGHT+IEh8K/ugeJSn5f0rbVZXKjHw6P9YG3WYwafiOOAYSSUHX7nRDpD5kQVEr0Yv390s7wg1SvR X-Received: by 2002:a17:90a:c24d:b0:2a2:ba1e:92fd with SMTP id d13-20020a17090ac24d00b002a2ba1e92fdmr2180419pjx.45.1712344551539; Fri, 05 Apr 2024 12:15:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712344551; cv=pass; d=google.com; s=arc-20160816; b=a0Zuc2UKWsCk60KBIy4PoG9S+JDexy1NIZUEWznQwPHxl7Jh8LzGNWjrs0kH1Xye66 +kZSj1MYJw2zTRAUJDq8rQVWDFYYC6kxc8ENfbOBqe+StXohNlxzfoFvLsGqH3BsAkku lPiRqOxWU4VdwP4YMAunrtWyOga7TB4eIOhUuRWttsXO006xkRNBallomGwy4Q/2Ek+4 we+2Hf5N2x2rUqntPdQDFjDEBscI58sfAXx+W/GoRdiuKs6+thuUsk2gljo9bxDzqgpd QXhpHanwxuTWv61HnbHcSt9y4+PBOjvd6aTNnJcccji78TGJDX9xSBnnRwVWm6UO3vk5 WoVQ== 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=cWmfDDERJb42IjzSqTDZHJTCfY0P4Md9v2hGsxPXotE=; fh=TmZ+bhU84ZQEhZei/wKctkrCSkKkF/+8kUNrvFCSqzQ=; b=MgcvSNtqH4t/GE5WInnFn6iiGE+LsqFkxRcVjSieUbIC35e8O5HpAi7L8i2ZfSxMJy j4/nsVkHDAtct6L7CXBK3QAUQ0vWravstaGaFzEgkiOb4rI1OpEI10KBubMdF+pGs/Wc Ruq7kyoHypbk+GDnMV2yeBYSTUJFXj3SvQ+gujiMB6Gu5MGbga4rCX6uAQ68FQ7zGg8s Q4ryim6wcMsDtJgdeGhE5gUrmXI9NR0J45BJWkqtckniWKMRVFDUVOItQNXaKuBGXIzT sItjGpi7vUOsWMCONqcrQfOJL0TewaqR83QLOfHYVZWhkluKn8Tdw9QkNJ30ortKPXe2 nznA==; 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=dckJbH8t; 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-133515-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133515-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id z17-20020a17090ad79100b002a20b9436b9si1918188pju.96.2024.04.05.12.15.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 12:15:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-133515-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@dilger-ca.20230601.gappssmtp.com header.s=20230601 header.b=dckJbH8t; 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-133515-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133515-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 2947F285EC6 for ; Fri, 5 Apr 2024 19:15:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 11640172BC6; Fri, 5 Apr 2024 19:15:41 +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="dckJbH8t" Received: from mail-pj1-f48.google.com (mail-pj1-f48.google.com [209.85.216.48]) (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 4997C172BA4 for ; Fri, 5 Apr 2024 19:15:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712344540; cv=none; b=FcCTlcjwNLhFpg4K19ZITK6BrFqhULExzEPMqlWUN+54uJpQkGXmjUwh7EnNv8jg+Dly3t2wbnheYdXNrv5a3229R0BwqHXonOZjFFiteVqhagH0zXbFTJ3sxo8o6EBuacPvHY95iTzFRk0GNuGpEMUKCOqizUwp4pgbcjDkGxU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712344540; c=relaxed/simple; bh=zXljUdGcTtBGipmnNDprBpcZkCkrHGztkJZeni3/5cA=; h=From:Message-Id:Content-Type:Mime-Version:Subject:Date: In-Reply-To:Cc:To:References; b=oFY0z5IXJhuaRVZZmLG7eIs7bnjI69aYteGc5SnAyRzViTlhB1oX6i88Hkd6zcGrYYr1gNmCx/V1FxUjZCw50vhUs3x3w3BDraPmqUTByWKp+d6J1dIEwDdpCraveE3NplWHvTA/SmYRFPP4vbG92WvFb4oyfV4oNgsgBVp7j58= 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=dckJbH8t; arc=none smtp.client-ip=209.85.216.48 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-pj1-f48.google.com with SMTP id 98e67ed59e1d1-2a2f007a33dso1478065a91.0 for ; Fri, 05 Apr 2024 12:15:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dilger-ca.20230601.gappssmtp.com; s=20230601; t=1712344538; x=1712949338; 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=cWmfDDERJb42IjzSqTDZHJTCfY0P4Md9v2hGsxPXotE=; b=dckJbH8tqvhfIZg4vPllAk2/mB3njC7QURDRbLQER2R6RSPuZAogmdKPtofQEx7o5a wxmg3HPwxbGxYxgRUlpglq0j/lHMfWofkAObH5vnV2sV46r/zBD68qkJKW5BbL9p6haI 6m1IYRK5whyxn84xP32ylcdC0ew4neH7Ky31k/3slaktV8xJstsG7ooEkQfNkgt2iRAP VhWaYppUhga3OzKvAqHneJluIeAAhLNIxZUEroae82POI3wa9rT7MyLAmQz4iBDh7bV/ yli66L7hBIyNMOAveBns5sfHXoIsD+zhjNCwEzpu1RBr6Oo8dsbBsoUqH4Aez/g6+HWT LnzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712344538; x=1712949338; 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=cWmfDDERJb42IjzSqTDZHJTCfY0P4Md9v2hGsxPXotE=; b=sF5Lkz7VzbKBxfFI8+FjVDZZHf5fziki7YJ0WqKojmYGihfChUJUh/qMcgSaxA1gSs lQ8S1iQhQY+zv3matCAJh9+5/+0UFGe9UD9waSqNKamYOub2KPh6WNQdKHa1xnAw+YIE ZgqN94hxGOWwDFQ29v6GuLE+XtoxQxtBVhKLcUAdNUS3IUVedR8kGhmXiNr+FkdCggiW dxURER9Ioq+i4wDrXWVKTqV/e3jlASARi2uFAfkHm4MT/wz4sNVFjY8YsEHB7igWXBpz X3hj1ol6sgbMzFWzou+eEYmkz7BQqMB9b5vOgDf4mTVbYErIiZ59R8698SgK05i35wMu tGcA== X-Forwarded-Encrypted: i=1; AJvYcCV5V5esQHe4tBxfYu1wPLd4r7yTEwCObIjT7lvA7R8Oljj/pPaZiGfW8Vtkfn6ZaEmC8FsT0Pk+z0qF4RrM5/l1thjzU75l8Qb2ACNb X-Gm-Message-State: AOJu0Yy3JWvZrPADE+XaZ3AOzPeof7ULwePSpyYpWxOQp83PsKaZ+1hq OZvMBPCcIPgBrgSlg3U+PANgorQf75NcHgyYGABzxrHPXZulu3O1ktfJNeK/iJk= X-Received: by 2002:a17:90a:d086:b0:2a0:38f0:dc4b with SMTP id k6-20020a17090ad08600b002a038f0dc4bmr2044465pju.7.1712344537643; Fri, 05 Apr 2024 12:15:37 -0700 (PDT) Received: from cabot.adilger.int (S01068c763f81ca4b.cg.shawcable.net. [70.77.200.158]) by smtp.gmail.com with ESMTPSA id l13-20020a17090aec0d00b0029c7963a33fsm3715620pjy.10.2024.04.05.12.15.35 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 05 Apr 2024 12:15:37 -0700 (PDT) From: Andreas Dilger Message-Id: <7CF0A3D0-50E7-448F-A992-90B9168D557F@dilger.ca> Content-Type: multipart/signed; boundary="Apple-Mail=_580FDCAB-FBEF-42A4-B8AF-A599EDFED403"; 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 13/13] bcachefs: fiemap: emit new COMPRESSED state Date: Fri, 5 Apr 2024 13:17:45 -0600 In-Reply-To: <943938ff75580b210eebf6c885659dd95f029486.1712126039.git.sweettea-kernel@dorminy.me> 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 Mailing List , linux-bcachefs@vger.kernel.org, linux-btrfs , linux-f2fs-devel@lists.sourceforge.net, linux-fsdevel , kernel-team@meta.com To: Sweet Tea Dorminy , Kent Overstreet References: <943938ff75580b210eebf6c885659dd95f029486.1712126039.git.sweettea-kernel@dorminy.me> X-Mailer: Apple Mail (2.3273) --Apple-Mail=_580FDCAB-FBEF-42A4-B8AF-A599EDFED403 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 > --- > fs/bcachefs/fs.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/fs/bcachefs/fs.c b/fs/bcachefs/fs.c > index d2793bae842d..54f613f977b4 100644 > --- a/fs/bcachefs/fs.c > +++ b/fs/bcachefs/fs.c > @@ -921,7 +921,7 @@ static int bch2_fill_extent(struct bch_fs *c, > flags2 |=3D FIEMAP_EXTENT_UNWRITTEN; >=20 > if (p.crc.compression_type) { > - flags2 |=3D FIEMAP_EXTENT_ENCODED; > + flags2 |=3D = FIEMAP_EXTENT_DATA_COMPRESSED; (defect) This should *also* set FIEMAP_EXTENT_ENCODED in this case, along with FIEMAP_EXTENT_DATA_COMPRESSED. Both for compatibility with older code that doesn't understand FIEMAP_EXTENT_DATA_COMPRESSED, and because the data still cannot be read directly from the volume when it is not mounted. Probably Kent should chime in here with what needs to be done to set the phys_len properly for bcachefs, or leave this patch out of your series and let him submit it directly. With proposed wrapper in the first patch of the series there isn't a hard requirement to change all of the filesystems in one shot. Cheers, Andreas --Apple-Mail=_580FDCAB-FBEF-42A4-B8AF-A599EDFED403 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+AFAmYQTlkACgkQcqXauRfM H+Da1w/+KwGpB/pDp08sIkXnagyqUWMdqtRK9hS/4cehNOAAdPTlbycb3PfNiTxy m2DZwrCbnPe4P1WB1nFy5DNsprtdOTGEbOiuOXKS3hkgnf9qY2lrFoC4inAMpNZi W+p1IXURkUadjDgKS5Ijwyl0HpDheQcN/AVdLKUR9vKebxRsIBlJ2qlekVVOakYS Y5wM2U8Ct3eaU6MAW3Mr0KMZKQPj5Ez5cVNZHm0046DtRmV/LI9/5RAKJUheesok eF88SBmXg4t5KUsCLRIqi8wUHnrdfWEVrc83RK3l8LYAVpw/SdP+5TSYwontrBU5 KoUUEkwdKv6p5yvzGKkdh0iR00oEQHtUvYJR1es9oCl0er6eeqOAryoNTtK7BpBG XbmY3rFRTCAgOp1gElHCIddnAIs2G5hDSo4jAqU/RzMkadFfS3YPuYL95BWAALlY bfmmXpRyeD4z9wzBQz5HRu+rhKThHdvKyOL5GkaYcYNEmFWQq64+bDTtb5aKm1DD FtfSEbx89tF6RyoafS3H6ESbhH4hmyYTWVmx9wpXtzLrGd8HWnRGsuQzFLx/uRWN tRMosixMwAJsO3rzvuAXyZKcDqsAHyzF9hHwogaZn0SmpyGwFPZc5/iIr8tBZS+U OWrKlNAy6Q0U91xdZPx3ZWpwSC3zh5BtCehRD0b8YX+G7DVSeFk= =8Pjr -----END PGP SIGNATURE----- --Apple-Mail=_580FDCAB-FBEF-42A4-B8AF-A599EDFED403--