summaryrefslogtreecommitdiff
path: root/fs/bcachefs/movinggc.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-12-17 06:30:09 +0300
committerKent Overstreet <kent.overstreet@linux.dev>2024-01-01 19:47:42 +0300
commit80eab7a7c2808f84e56ba1f2f1408a16c46d3bdc (patch)
tree44a8e33d297d74e2c1fb4cebcb17b68c5de575a0 /fs/bcachefs/movinggc.c
parentc47e8bfbb76991c7ea5feae4b21539c36d1200be (diff)
downloadlinux-80eab7a7c2808f84e56ba1f2f1408a16c46d3bdc.tar.xz
bcachefs: for_each_btree_key() now declares loop iter
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/movinggc.c')
-rw-r--r--fs/bcachefs/movinggc.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/bcachefs/movinggc.c b/fs/bcachefs/movinggc.c
index 4aa8ef583037..8aa212685b3f 100644
--- a/fs/bcachefs/movinggc.c
+++ b/fs/bcachefs/movinggc.c
@@ -145,8 +145,6 @@ static int bch2_copygc_get_buckets(struct moving_context *ctxt,
{
struct btree_trans *trans = ctxt->trans;
struct bch_fs *c = trans->c;
- struct btree_iter iter;
- struct bkey_s_c k;
size_t nr_to_get = max_t(size_t, 16U, buckets_in_flight->nr / 4);
size_t saw = 0, in_flight = 0, not_movable = 0, sectors = 0;
int ret;