summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/quota.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2021-03-03 12:10:49 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:08:55 -0400
commitb8f0507915319ee8032b3c5b72f65f22812b9f91 (patch)
treeeebcd78f906ed22e1e5a5dd3057707a4a8126558 /fs/bcachefs/quota.c
parent1f7fdc0abd743076dac6bc91b293a4ae1bb70e61 (diff)
downloadlinux-stable-b8f0507915319ee8032b3c5b72f65f22812b9f91.tar.gz
linux-stable-b8f0507915319ee8032b3c5b72f65f22812b9f91.tar.bz2
linux-stable-b8f0507915319ee8032b3c5b72f65f22812b9f91.zip
bcachefs: Delete some dead code
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/quota.c')
-rw-r--r--fs/bcachefs/quota.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/bcachefs/quota.c b/fs/bcachefs/quota.c
index 041da982d051..8e272519ce0e 100644
--- a/fs/bcachefs/quota.c
+++ b/fs/bcachefs/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;
}