diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-11-06 00:03:40 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:16 -0400 |
commit | 32b26e8c7f6418b2d8bd404c7482c44141ba52e5 (patch) | |
tree | 18dec9960e72f03db0004c81a957736a4423eecf /fs/bcachefs/fs.h | |
parent | 9a74f63c97a5c8fcfd0469a87afb0aa95f55f806 (diff) |
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/fs.h')
-rw-r--r-- | fs/bcachefs/fs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/fs.h b/fs/bcachefs/fs.h index 1c8936df9fbb..530238780a88 100644 --- a/fs/bcachefs/fs.h +++ b/fs/bcachefs/fs.h @@ -172,7 +172,7 @@ struct inode *bch2_vfs_inode_get(struct bch_fs *, subvol_inum); typedef int (*inode_set_fn)(struct bch_inode_info *, struct bch_inode_unpacked *, void *); -void bch2_inode_update_after_write(struct bch_fs *, +void bch2_inode_update_after_write(struct btree_trans *, struct bch_inode_info *, struct bch_inode_unpacked *, unsigned); |