diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-03-12 16:56:43 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2021-03-12 16:56:43 -0500 |
commit | e7c4380a892297d2f65e1c317a1b6d4c67378299 (patch) | |
tree | 5663bfdcc1c2d67f6b1a8a9da517941cdf44888e /libbcachefs/quota.c | |
parent | fb2d506f6f5c582d89596a2d2d1b2cc7d8374a7a (diff) |
Update bcachefs sources to 63924135a1 bcachefs: Have fsck check for stripe pointers matching stripe
Diffstat (limited to 'libbcachefs/quota.c')
-rw-r--r-- | libbcachefs/quota.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/libbcachefs/quota.c b/libbcachefs/quota.c index 041da982..8e272519 100644 --- a/libbcachefs/quota.c +++ b/libbcachefs/quota.c @@ -746,7 +746,6 @@ static int bch2_set_quota(struct super_block *sb, struct kqid qid, struct qc_dqblk *qdq) { struct bch_fs *c = sb->s_fs_info; - struct btree_trans trans; struct bkey_i_quota new_quota; int ret; @@ -756,14 +755,10 @@ 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)); - bch2_trans_init(&trans, c, 0, 0); - ret = bch2_trans_do(c, NULL, NULL, BTREE_INSERT_NOUNLOCK, bch2_set_quota_trans(&trans, &new_quota, qdq)) ?: __bch2_quota_set(c, bkey_i_to_s_c(&new_quota.k_i)); - bch2_trans_exit(&trans); - return ret; } |