diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2019-12-22 23:04:30 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:08:33 -0400 |
commit | b1fd23df1deda45a408d007aa0b105569d12b907 (patch) | |
tree | 152537cbb9cb393a0ecb3ab38ecbe8343326ce39 /fs/bcachefs/xattr.c | |
parent | a8abd3a7f63efe4a366ae5aba10b2466feba39d7 (diff) | |
download | lwn-b1fd23df1deda45a408d007aa0b105569d12b907.tar.gz lwn-b1fd23df1deda45a408d007aa0b105569d12b907.zip |
bcachefs: Convert all bch2_trans_commit() users to BTREE_INSERT_ATOMIC
BTREE_INSERT_ATOMIC should really be the default mode, and there's not
that much code that doesn't need it - so this is prep work for getting
rid of the flag.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/xattr.c')
-rw-r--r-- | fs/bcachefs/xattr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/bcachefs/xattr.c b/fs/bcachefs/xattr.c index 5aeff1012f8b..6cef6c14fc89 100644 --- a/fs/bcachefs/xattr.c +++ b/fs/bcachefs/xattr.c @@ -328,7 +328,8 @@ static int bch2_xattr_set_handler(const struct xattr_handler *handler, struct bch_inode_info *inode = to_bch_ei(vinode); struct bch_fs *c = inode->v.i_sb->s_fs_info; - return bch2_trans_do(c, &inode->ei_journal_seq, BTREE_INSERT_ATOMIC, + return bch2_trans_do(c, NULL, &inode->ei_journal_seq, + BTREE_INSERT_ATOMIC, bch2_xattr_set(&trans, inode->v.i_ino, &inode->ei_str_hash, name, value, size, |