public inbox for linux-next@vger.kernel.org 
 help / color / mirror / Atom feed
From: Stephen Rothwell <sfr@canb•auug.org.au>
To: Kent Overstreet <kent.overstreet@linux•dev>
Cc: Joshua Ashton <joshua@froggi•es>,
	Linux Kernel Mailing List <linux-kernel@vger•kernel.org>,
	Linux Next Mailing List <linux-next@vger•kernel.org>
Subject: Re: linux-next: manual merge of the bcachefs tree with Linus tree
Date: Fri, 28 Feb 2025 10:29:43 +1100	[thread overview]
Message-ID: <20250228102943.1c3a9908@canb.auug.org.au> (raw)
In-Reply-To: <20250228092826.255fec8a@canb.auug.org.au>

[-- Attachment #1: Type: text/plain, Size: 3435 bytes --]

Hi all,

On Fri, 28 Feb 2025 09:28:26 +1100 Stephen Rothwell <sfr@canb•auug.org.au> wrote:
>
> Today's linux-next merge of the bcachefs tree got conflicts in:
> 
>   fs/bcachefs/dirent.h
>   fs/bcachefs/fs-common.c
>   fs/bcachefs/sb-downgrade.c
> 
> between commit:
> 
>   4804f3ac2649 ("bcachefs: Revert directory i_size")
> 
> from Linus tree and commits:
> 
>   1afdbf54cda5 ("bcachefs: bcachefs_metadata_version_cached_backpointers")
>   713d0639b9f7 ("bcachefs: bcachefs_metadata_version_stripe_backpointers")
>   3e97fc2b1bb1 ("bcachefs: Kill dirent_occupied_size()")
>   bb13a9d96daa ("bcachefs: bcachefs_metadata_version_casefolding")
> 
> from the bcachefs tree.
> 
> I fixed it up (see below) and can carry the fix as necessary. This
> is now fixed as far as linux-next is concerned, but any non trivial
> conflicts should be mentioned to your upstream maintainer when your tree
> is submitted for merging.  You may also want to consider cooperating
> with the maintainer of the conflicting tree to minimise any particularly
> complex conflicts.
> 
> -- 
> Cheers,
> Stephen Rothwell
> 
> diff --cc fs/bcachefs/dirent.h
> index 362b3b2f2f2e,a6e15a012936..000000000000
> --- a/fs/bcachefs/dirent.h
> +++ b/fs/bcachefs/dirent.h
> diff --cc fs/bcachefs/fs-common.c
> index 2c3d46ac70c6,ca70a3de805c..000000000000
> --- a/fs/bcachefs/fs-common.c
> +++ b/fs/bcachefs/fs-common.c
> diff --cc fs/bcachefs/sb-downgrade.c
> index 051214fdc735,21130eadaf32..000000000000
> --- a/fs/bcachefs/sb-downgrade.c
> +++ b/fs/bcachefs/sb-downgrade.c
> @@@ -90,7 -90,16 +90,13 @@@
>   	  BIT_ULL(BCH_RECOVERY_PASS_check_allocations),		\
>   	  BCH_FSCK_ERR_accounting_mismatch,			\
>   	  BCH_FSCK_ERR_accounting_key_replicas_nr_devs_0,	\
> - 	  BCH_FSCK_ERR_accounting_key_junk_at_end)
> + 	  BCH_FSCK_ERR_accounting_key_junk_at_end)		\
>  -	x(directory_size,					\
>  -	  BIT_ULL(BCH_RECOVERY_PASS_check_dirents),		\
>  -	  BCH_FSCK_ERR_directory_size_mismatch)			\
> + 	x(cached_backpointers,					\
> + 	  BIT_ULL(BCH_RECOVERY_PASS_check_extents_to_backpointers),\
> + 	  BCH_FSCK_ERR_ptr_to_missing_backpointer)		\
> + 	x(stripe_backpointers,					\
> + 	  BIT_ULL(BCH_RECOVERY_PASS_check_extents_to_backpointers),\
> + 	  BCH_FSCK_ERR_ptr_to_missing_backpointer)
>   
>   #define DOWNGRADE_TABLE()					\
>   	x(bucket_stripe_sectors,				\

I also needed this to make it build:

From: Stephen Rothwell <sfr@canb•auug.org.au>
Date: Fri, 28 Feb 2025 09:59:39 +1100
Subject: [PATCH] fix up for "bcachefs: fix directory i_size checking for the
 last entry"

interacting with "bcachefs: Revert directory i_size"

Signed-off-by: Stephen Rothwell <sfr@canb•auug.org.au>
---
 fs/bcachefs/fsck.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/fs/bcachefs/fsck.c b/fs/bcachefs/fsck.c
index 9e922babace0..0e85131d0af8 100644
--- a/fs/bcachefs/fsck.c
+++ b/fs/bcachefs/fsck.c
@@ -2449,8 +2449,7 @@ int bch2_check_dirents(struct bch_fs *c)
 				POS(BCACHEFS_ROOT_INO, 0),
 				BTREE_ITER_prefetch|BTREE_ITER_all_snapshots, k,
 			check_dirent(trans, &iter, k, &hash_info, &dir, &target, &s)) ?:
-		check_subdir_count_notnested(trans, &dir) ?:
-		check_dir_i_size_notnested(trans, &dir));
+		check_subdir_count_notnested(trans, &dir));
 
 	snapshots_seen_exit(&s);
 	inode_walker_exit(&dir);
-- 
2.45.2

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

  reply	other threads:[~2025-02-27 23:29 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-27 22:28 linux-next: manual merge of the bcachefs tree with Linus tree Stephen Rothwell
2025-02-27 23:29 ` Stephen Rothwell [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-03-30 22:28 linux-next: manual merge of the bcachefs tree with Linus' tree Stephen Rothwell
2024-07-11  0:12 Stephen Rothwell
2024-07-11  0:04 Stephen Rothwell
2024-07-10 23:57 Stephen Rothwell
2024-07-10 23:50 Stephen Rothwell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250228102943.1c3a9908@canb.auug.org.au \
    --to=sfr@canb$(echo .)auug.org.au \
    --cc=joshua@froggi$(echo .)es \
    --cc=kent.overstreet@linux$(echo .)dev \
    --cc=linux-kernel@vger$(echo .)kernel.org \
    --cc=linux-next@vger$(echo .)kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox