bcachefs: Delete some dead code
authorKent Overstreet <kent.overstreet@gmail.com>
Wed, 3 Mar 2021 17:10:49 +0000 (12:10 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:55 +0000 (17:08 -0400)
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/quota.c

index 041da982d05111a47b182a21e6051b60f7e6c7e6..8e272519ce0e38a036b147a2cc60448c56eca0ec 100644 (file)
@@ -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;
 }