]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
bcachefs: Remove duplicate call to bch2_trans_begin()
authorAlan Huang <mmpgouride@gmail.com>
Mon, 19 May 2025 11:51:04 +0000 (19:51 +0800)
committerKent Overstreet <kent.overstreet@linux.dev>
Thu, 22 May 2025 00:15:08 +0000 (20:15 -0400)
There is one in for_each_btree_key_max().

Signed-off-by: Alan Huang <mmpgouride@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/movinggc.c

index 7cb0b3d347b473cf5f56ca4e7b3dba4d9134cc1f..e7a2a13554d71f66649a6e2e0a5ddb3d747dbae0 100644 (file)
@@ -154,8 +154,6 @@ static int bch2_copygc_get_buckets(struct moving_context *ctxt,
        if (bch2_fs_fatal_err_on(ret, c, "%s: from bch2_btree_write_buffer_tryflush()", bch2_err_str(ret)))
                return ret;
 
-       bch2_trans_begin(trans);
-
        ret = for_each_btree_key_max(trans, iter, BTREE_ID_lru,
                                  lru_pos(BCH_LRU_BUCKET_FRAGMENTATION, 0, 0),
                                  lru_pos(BCH_LRU_BUCKET_FRAGMENTATION, U64_MAX, LRU_TIME_MAX),