bcachefs: bch2_assert_pos_locked()
authorKent Overstreet <kent.overstreet@gmail.com>
Sat, 6 Nov 2021 04:03:40 +0000 (00:03 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:16 +0000 (17:09 -0400)
commit32b26e8c7f6418b2d8bd404c7482c44141ba52e5
tree18dec9960e72f03db0004c81a957736a4423eecf
parent9a74f63c97a5c8fcfd0469a87afb0aa95f55f806
bcachefs: bch2_assert_pos_locked()

This adds a new assertion to be used by bch2_inode_update_after_write(),
which updates the VFS inode based on the update to the btree inode we
just did - we require that the btree inode still be locked when we do
that update.

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