Skip to content

Commit 22a507d

Browse files
author
Kent Overstreet
committed
bcachefs: kill inode_walker_entry.seen_this_pos
dead code Signed-off-by: Kent Overstreet <[email protected]>
1 parent b29c30a commit 22a507d

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

fs/bcachefs/fsck.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,6 @@ static int ref_visible2(struct bch_fs *c,
626626
struct inode_walker_entry {
627627
struct bch_inode_unpacked inode;
628628
u32 snapshot;
629-
bool seen_this_pos;
630629
u64 count;
631630
};
632631

@@ -740,9 +739,6 @@ static struct inode_walker_entry *walk_inode(struct btree_trans *trans,
740739
int ret = get_inodes_all_snapshots(trans, w, k.k->p.inode);
741740
if (ret)
742741
return ERR_PTR(ret);
743-
} else if (bkey_cmp(w->last_pos, k.k->p)) {
744-
darray_for_each(w->inodes, i)
745-
i->seen_this_pos = false;
746742
}
747743

748744
w->last_pos = k.k->p;
@@ -1634,8 +1630,6 @@ static int check_extent(struct btree_trans *trans, struct btree_iter *iter,
16341630
if (bkey_extent_is_allocation(k.k))
16351631
i->count += k.k->size;
16361632
}
1637-
1638-
i->seen_this_pos = true;
16391633
}
16401634

16411635
if (k.k->type != KEY_TYPE_whiteout) {

0 commit comments

Comments
 (0)