diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-11-24 02:05:18 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-01-01 19:47:38 +0300 |
commit | dafff7e57508e87b473d91bac3e38181e2b829f2 (patch) | |
tree | 5db11e2b0eb70f57e76f9931b2daa952a147c621 /fs/bcachefs/move.c | |
parent | e6674decb2195999ae9fe074bf048ba91e336144 (diff) | |
download | linux-dafff7e57508e87b473d91bac3e38181e2b829f2.tar.xz |
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/move.c')
-rw-r--r-- | fs/bcachefs/move.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/move.c b/fs/bcachefs/move.c index d99742fbdb19..615f18a0311a 100644 --- a/fs/bcachefs/move.c +++ b/fs/bcachefs/move.c @@ -677,7 +677,7 @@ int __bch2_evacuate_bucket(struct moving_context *ctxt, } a = bch2_alloc_to_v4(k, &a_convert); - dirty_sectors = a->dirty_sectors; + dirty_sectors = bch2_bucket_sectors_dirty(*a); bucket_size = bch_dev_bkey_exists(c, bucket.inode)->mi.bucket_size; fragmentation = a->fragmentation_lru; |