bcachefs: Change inode allocation code for snapshots
authorKent Overstreet <kent.overstreet@gmail.com>
Mon, 15 Mar 2021 23:18:30 +0000 (19:18 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:58 +0000 (17:08 -0400)
commite6ae27272491afec1994c31eee4744f19ce3b3f4
tree79308475924880522411b4c900e017530cb1fcd3
parentab2a29ccffd0e9fe62afb8bbd45e1709f9726942
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>
fs/bcachefs/fs-common.c
fs/bcachefs/inode.c
fs/bcachefs/inode.h