summaryrefslogtreecommitdiff
path: root/fs/bcachefs/inode.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2021-05-28 12:06:18 +0300
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-23 00:09:04 +0300
commitbff796ae6539b50bb3fe595e8db7b72e3255a34d (patch)
tree70b274633607982f1d5bdabbd1a84136ea16f3d4 /fs/bcachefs/inode.h
parentd797ca3d8ed3b493d6558426fb4b4980ff186c37 (diff)
downloadlinux-bff796ae6539b50bb3fe595e8db7b72e3255a34d.tar.xz
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>
Diffstat (limited to 'fs/bcachefs/inode.h')
-rw-r--r--fs/bcachefs/inode.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/inode.h b/fs/bcachefs/inode.h
index 558d5464095d..2cb081ae44d9 100644
--- a/fs/bcachefs/inode.h
+++ b/fs/bcachefs/inode.h
@@ -70,7 +70,7 @@ void bch2_inode_init(struct bch_fs *, struct bch_inode_unpacked *,
struct bch_inode_unpacked *);
struct btree_iter *bch2_inode_create(struct btree_trans *,
- struct bch_inode_unpacked *, u32);
+ struct bch_inode_unpacked *, u32, u64);
int bch2_inode_rm(struct bch_fs *, u64, bool);