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/acl.c | |
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/acl.c')
-rw-r--r-- | fs/bcachefs/acl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/acl.c b/fs/bcachefs/acl.c index 51a0b48a5313..00cd40a8d7fa 100644 --- a/fs/bcachefs/acl.c +++ b/fs/bcachefs/acl.c @@ -339,7 +339,7 @@ btree_err: if (unlikely(ret)) goto err; - bch2_inode_update_after_write(c, inode, &inode_u, + bch2_inode_update_after_write(&trans, inode, &inode_u, ATTR_CTIME|ATTR_MODE); set_cached_acl(&inode->v, type, acl); |