diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-07-28 04:15:04 +0200 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 23:09:10 +0200 |
commit | 1a488e73067c65086191a63fe61e57692383fb27 (patch) | |
tree | bb723497d3544be51f812b8da2eae01e21fa5020 /fs/bcachefs/quota.c | |
parent | bcachefs: Btree splits no longer automatically cause a transaction restart (diff) | |
download | linux-1a488e73067c65086191a63fe61e57692383fb27.tar.xz linux-1a488e73067c65086191a63fe61e57692383fb27.zip |
bcachefs: Kill BTREE_INSERT_NOUNLOCK
With the recent transaction restart changes, it's no longer needed - all
transaction commits have BTREE_INSERT_NOUNLOCK semantics.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/quota.c')
-rw-r--r-- | fs/bcachefs/quota.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/quota.c b/fs/bcachefs/quota.c index 35b409e0f366..7861781a4a7f 100644 --- a/fs/bcachefs/quota.c +++ b/fs/bcachefs/quota.c @@ -760,7 +760,7 @@ static int bch2_set_quota(struct super_block *sb, struct kqid qid, bkey_quota_init(&new_quota.k_i); new_quota.k.p = POS(qid.type, from_kqid(&init_user_ns, qid)); - ret = bch2_trans_do(c, NULL, NULL, BTREE_INSERT_NOUNLOCK, + ret = bch2_trans_do(c, NULL, NULL, 0, bch2_set_quota_trans(&trans, &new_quota, qdq)) ?: __bch2_quota_set(c, bkey_i_to_s_c(&new_quota.k_i)); |