diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-11-06 05:03:40 +0100 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 23:09:16 +0200 |
commit | 32b26e8c7f6418b2d8bd404c7482c44141ba52e5 (patch) | |
tree | 18dec9960e72f03db0004c81a957736a4423eecf /fs/bcachefs/inode.c | |
parent | bcachefs: path->should_be_locked fixes (diff) | |
download | linux-32b26e8c7f6418b2d8bd404c7482c44141ba52e5.tar.xz linux-32b26e8c7f6418b2d8bd404c7482c44141ba52e5.zip |
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>
Diffstat (limited to 'fs/bcachefs/inode.c')
-rw-r--r-- | fs/bcachefs/inode.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/bcachefs/inode.c b/fs/bcachefs/inode.c index 728545141a39..a24bbc5228c1 100644 --- a/fs/bcachefs/inode.c +++ b/fs/bcachefs/inode.c @@ -722,9 +722,9 @@ err: return ret; } -static int bch2_inode_find_by_inum_trans(struct btree_trans *trans, - subvol_inum inum, - struct bch_inode_unpacked *inode) +int bch2_inode_find_by_inum_trans(struct btree_trans *trans, + subvol_inum inum, + struct bch_inode_unpacked *inode) { struct btree_iter iter; int ret; |