diff options
author | Daniel Hill <daniel@gluo.nz> | 2023-01-20 01:27:30 +1300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:52 -0400 |
commit | 8ffa11a2c523b49836ca05f8755e22a4607d86a7 (patch) | |
tree | 94a95704b518b5adfc7b62b3b19657612f91b2e5 /fs/bcachefs/tests.c | |
parent | 76966dbfa9eb4a723cb899ba07f55448e5b21bbe (diff) | |
download | linux-8ffa11a2c523b49836ca05f8755e22a4607d86a7.tar.gz linux-8ffa11a2c523b49836ca05f8755e22a4607d86a7.tar.bz2 linux-8ffa11a2c523b49836ca05f8755e22a4607d86a7.zip |
bcachefs: let __bch2_btree_insert() pass in flags
This patch is prep work for the following patch.
Signed-off-by: Daniel Hill <daniel@gluo.nz>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/tests.c')
-rw-r--r-- | fs/bcachefs/tests.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/fs/bcachefs/tests.c b/fs/bcachefs/tests.c index 80fce1c95470..d352821d5614 100644 --- a/fs/bcachefs/tests.c +++ b/fs/bcachefs/tests.c @@ -592,7 +592,7 @@ static int rand_insert(struct bch_fs *c, u64 nr) k.k.p.snapshot = U32_MAX; ret = commit_do(&trans, NULL, NULL, 0, - __bch2_btree_insert(&trans, BTREE_ID_xattrs, &k.k_i)); + __bch2_btree_insert(&trans, BTREE_ID_xattrs, &k.k_i, 0)); if (ret) { bch_err(c, "%s(): error %s", __func__, bch2_err_str(ret)); break; @@ -621,14 +621,14 @@ static int rand_insert_multi(struct bch_fs *c, u64 nr) } ret = commit_do(&trans, NULL, NULL, 0, - __bch2_btree_insert(&trans, BTREE_ID_xattrs, &k[0].k_i) ?: - __bch2_btree_insert(&trans, BTREE_ID_xattrs, &k[1].k_i) ?: - __bch2_btree_insert(&trans, BTREE_ID_xattrs, &k[2].k_i) ?: - __bch2_btree_insert(&trans, BTREE_ID_xattrs, &k[3].k_i) ?: - __bch2_btree_insert(&trans, BTREE_ID_xattrs, &k[4].k_i) ?: - __bch2_btree_insert(&trans, BTREE_ID_xattrs, &k[5].k_i) ?: - __bch2_btree_insert(&trans, BTREE_ID_xattrs, &k[6].k_i) ?: - __bch2_btree_insert(&trans, BTREE_ID_xattrs, &k[7].k_i)); + __bch2_btree_insert(&trans, BTREE_ID_xattrs, &k[0].k_i, 0) ?: + __bch2_btree_insert(&trans, BTREE_ID_xattrs, &k[1].k_i, 0) ?: + __bch2_btree_insert(&trans, BTREE_ID_xattrs, &k[2].k_i, 0) ?: + __bch2_btree_insert(&trans, BTREE_ID_xattrs, &k[3].k_i, 0) ?: + __bch2_btree_insert(&trans, BTREE_ID_xattrs, &k[4].k_i, 0) ?: + __bch2_btree_insert(&trans, BTREE_ID_xattrs, &k[5].k_i, 0) ?: + __bch2_btree_insert(&trans, BTREE_ID_xattrs, &k[6].k_i, 0) ?: + __bch2_btree_insert(&trans, BTREE_ID_xattrs, &k[7].k_i, 0)); if (ret) { bch_err(c, "%s(): error %s", __func__, bch2_err_str(ret)); break; |