bcachefs: Fix pathalogical behaviour with inode sharding by cpu ID
authorKent Overstreet <kent.overstreet@gmail.com>
Fri, 28 May 2021 09:06:18 +0000 (05:06 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:04 +0000 (17:09 -0400)
commitbff796ae6539b50bb3fe595e8db7b72e3255a34d
tree70b274633607982f1d5bdabbd1a84136ea16f3d4
parentd797ca3d8ed3b493d6558426fb4b4980ff186c37
bcachefs: Fix pathalogical behaviour with inode sharding by cpu ID

If the transactior restarts on a different CPU, it could end up needing
to read in a different btree node, which makes another transaction
restart more likely...

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/fs-common.c
fs/bcachefs/inode.c
fs/bcachefs/inode.h