diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-11-23 18:05:18 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-01-01 11:47:38 -0500 |
commit | dafff7e57508e87b473d91bac3e38181e2b829f2 (patch) | |
tree | 5db11e2b0eb70f57e76f9931b2daa952a147c621 /fs/bcachefs/movinggc.c | |
parent | e6674decb2195999ae9fe074bf048ba91e336144 (diff) | |
download | linux-dafff7e57508e87b473d91bac3e38181e2b829f2.tar.gz linux-dafff7e57508e87b473d91bac3e38181e2b829f2.tar.bz2 linux-dafff7e57508e87b473d91bac3e38181e2b829f2.zip |
bcachefs: New bucket sector count helpers
This introduces bch2_bucket_sectors() and bch2_bucket_sectors_dirty(),
prep work for separately accounting stripe sectors.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/movinggc.c')
-rw-r--r-- | fs/bcachefs/movinggc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/movinggc.c b/fs/bcachefs/movinggc.c index a84e79f79e5e..b8d0542222c3 100644 --- a/fs/bcachefs/movinggc.c +++ b/fs/bcachefs/movinggc.c @@ -91,7 +91,7 @@ static int bch2_bucket_is_movable(struct btree_trans *trans, a = bch2_alloc_to_v4(k, &_a); b->k.gen = a->gen; - b->sectors = a->dirty_sectors; + b->sectors = bch2_bucket_sectors_dirty(*a); ret = data_type_movable(a->data_type) && a->fragmentation_lru && |