diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-12-17 03:40:26 +0100 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-01-01 17:47:42 +0100 |
commit | defd9e39b59961ea0fd774020fb5c05dba199412 (patch) | |
tree | 25875b3bd5b7af3a67b159c9ca674ccc76967c0d /fs/bcachefs/snapshot.c | |
parent | bcachefs: trans_for_each_update() now declares loop iter (diff) | |
download | linux-defd9e39b59961ea0fd774020fb5c05dba199412.tar.xz linux-defd9e39b59961ea0fd774020fb5c05dba199412.zip |
bcachefs: darray_for_each() now declares loop iter
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/snapshot.c')
-rw-r--r-- | fs/bcachefs/snapshot.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/bcachefs/snapshot.c b/fs/bcachefs/snapshot.c index b0ef415914dc..f5f1d7797533 100644 --- a/fs/bcachefs/snapshot.c +++ b/fs/bcachefs/snapshot.c @@ -1311,7 +1311,6 @@ static int bch2_fix_child_of_deleted_snapshot(struct btree_trans *trans, struct bch_fs *c = trans->c; u32 nr_deleted_ancestors = 0; struct bkey_i_snapshot *s; - u32 *i; int ret; if (k.k->type != KEY_TYPE_snapshot) @@ -1369,7 +1368,7 @@ int bch2_delete_dead_snapshots(struct bch_fs *c) struct bkey_s_c_snapshot snap; snapshot_id_list deleted = { 0 }; snapshot_id_list deleted_interior = { 0 }; - u32 *i, id; + u32 id; int ret = 0; if (!test_and_clear_bit(BCH_FS_need_delete_dead_snapshots, &c->flags)) |