summaryrefslogtreecommitdiff
path: root/fs/bcachefs/buckets.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2022-01-01 23:16:15 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:09:22 -0400
commit8f11548edbccc316939dddf7a52d0aa8151a5ba6 (patch)
tree50df452d1c2096a12c81b333ffc901b2e2e33d34 /fs/bcachefs/buckets.c
parent4e08446db05427ad0972eba58d6447b21c1ca7e1 (diff)
downloadlwn-8f11548edbccc316939dddf7a52d0aa8151a5ba6.tar.gz
lwn-8f11548edbccc316939dddf7a52d0aa8151a5ba6.zip
bcachefs: Improve path for when btree_gc needs another pass
btree_gc sometimes needs another pass when it corrects bucket generation numbers or data types - when it finds multiple pointers of different data types to the same bucket, it may want to keep the second one it found. When this happens, we now clear out bucket sector counts _without_ resetting the bucket generation/data types that we already found, instead of resetting them to what we have in the alloc btree. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/buckets.c')
0 files changed, 0 insertions, 0 deletions