]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
bcachefs: bch2_snapshot_table_make_room()
authorKent Overstreet <kent.overstreet@linux.dev>
Wed, 2 Apr 2025 18:40:06 +0000 (14:40 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Thu, 22 May 2025 00:13:50 +0000 (20:13 -0400)
commitb974357c63d0b26606210942dc5659d755089d4e
tree1a883e28292129390e258ad0d5258199b53b45b7
parentea27e8ca5d8e117b17a3d76c39404d206c5ebdeb
bcachefs: bch2_snapshot_table_make_room()

Add a better helper for check_snapshot_exists().

create_snapids() can't be changed to use this, unfortunately, because
the transaction that creates new snapshot will also be inserting other
keys (e.g. root inode) that reference that snapshot ID, and they expect
the snapshot table to already be updated.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/snapshot.c