diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-04-16 21:34:00 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:01 -0400 |
commit | dac1525d9c0d6e69da561dbc2becdcd32230b907 (patch) | |
tree | e91d02d9f4d7019abd43a4418601cab8aabbb541 /fs/bcachefs/btree_gc.h | |
parent | 694015c2b1cf114577e4526c0aa370d0ed0a10e5 (diff) | |
download | linux-dac1525d9c0d6e69da561dbc2becdcd32230b907.tar.gz linux-dac1525d9c0d6e69da561dbc2becdcd32230b907.tar.bz2 linux-dac1525d9c0d6e69da561dbc2becdcd32230b907.zip |
bcachefs: gc shouldn't care about owned_by_allocator
The owned_by_allocator field is a purely in memory thing, even if/when
we bring back GC at runtime there's no need for it to be recalculating
this field. This is prep work for pulling it out of struct bucket, and
eventually getting rid of the bucket array.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/btree_gc.h')
-rw-r--r-- | fs/bcachefs/btree_gc.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/fs/bcachefs/btree_gc.h b/fs/bcachefs/btree_gc.h index 868723a30b15..e9a87394370a 100644 --- a/fs/bcachefs/btree_gc.h +++ b/fs/bcachefs/btree_gc.h @@ -90,14 +90,6 @@ static inline struct gc_pos gc_pos_btree_root(enum btree_id id) return gc_pos_btree(id, POS_MAX, BTREE_MAX_DEPTH); } -static inline struct gc_pos gc_pos_alloc(struct bch_fs *c, struct open_bucket *ob) -{ - return (struct gc_pos) { - .phase = GC_PHASE_ALLOC, - .pos = POS(ob ? ob - c->open_buckets : 0, 0), - }; -} - static inline bool gc_visited(struct bch_fs *c, struct gc_pos pos) { unsigned seq; |