summaryrefslogtreecommitdiff
path: root/fs/bcachefs/buckets_types.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2022-03-18 00:42:09 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2023-06-20 22:52:24 -0400
commit328cf5dbe8822dd1cbbb62cea26ed8727c0dacf3 (patch)
treee4df65d61facd33874d519bb10622dc0c8abd41a /fs/bcachefs/buckets_types.h
parenta4730468332487d1dab1df38097aba9aac3c0967 (diff)
bcachefs: Copygc now uses backpointers
Previously, copygc needed to walk the entire extents & reflink btrees to find extents that needed to be moved. Now that we have backpointers, this patch implements bch2_evacuate_bucket() in the move code, which copygc now uses for evacuating mostly empty buckets. Also, thanks to the new backpointers code, copygc can now move btree nodes. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/buckets_types.h')
-rw-r--r--fs/bcachefs/buckets_types.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/buckets_types.h b/fs/bcachefs/buckets_types.h
index 0a9dd5af3524..1dbba7d906dd 100644
--- a/fs/bcachefs/buckets_types.h
+++ b/fs/bcachefs/buckets_types.h
@@ -95,7 +95,7 @@ struct copygc_heap_entry {
u8 replicas;
u32 fragmentation;
u32 sectors;
- u64 offset;
+ u64 bucket;
};
typedef HEAP(struct copygc_heap_entry) copygc_heap;