diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-03-15 19:18:30 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:08:58 -0400 |
commit | e6ae27272491afec1994c31eee4744f19ce3b3f4 (patch) | |
tree | 79308475924880522411b4c900e017530cb1fcd3 /fs/bcachefs/inode.h | |
parent | ab2a29ccffd0e9fe62afb8bbd45e1709f9726942 (diff) |
bcachefs: Change inode allocation code for snapshots
For snapshots, when we allocate a new inode we want to allocate an inode
number that isn't in use in any other subvolume. We won't be able to use
ITER_SLOTS for this, inode allocation needs to change to use
BTREE_ITER_ALL_SNAPSHOTS.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/inode.h')
-rw-r--r-- | fs/bcachefs/inode.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/inode.h b/fs/bcachefs/inode.h index 6bad6dfb7989..23c322d9a85b 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 *); + struct bch_inode_unpacked *, u32); int bch2_inode_rm(struct bch_fs *, u64, bool); |