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/recovery.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/recovery.c')
-rw-r--r-- | fs/bcachefs/recovery.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/recovery.c b/fs/bcachefs/recovery.c index e6b51131cff2..a3ee2f474952 100644 --- a/fs/bcachefs/recovery.c +++ b/fs/bcachefs/recovery.c @@ -1009,7 +1009,7 @@ int bch2_fs_initialize(struct bch_fs *c) bch2_inode_init_early(c, &lostfound_inode); err = "error creating lost+found"; - ret = bch2_trans_do(c, NULL, BTREE_INSERT_ATOMIC, + ret = bch2_trans_do(c, NULL, NULL, BTREE_INSERT_ATOMIC, bch2_create_trans(&trans, BCACHEFS_ROOT_INO, &root_inode, &lostfound_inode, &lostfound, |