diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2022-01-10 19:46:39 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2022-01-10 21:03:07 -0500 |
commit | 215ae52a43d30b249f0a4e4086e553c11ccac9fe (patch) | |
tree | a71b6b7d164901e0b3d035b795fed1970991ccb7 /fs/bcachefs/buckets.h | |
parent | 289739217ad1a7b0a51dbe6f6ee0a7c35e07974c (diff) |
bcachefs: Ignore cached data when calculating fragmentationtesting
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/buckets.h')
-rw-r--r-- | fs/bcachefs/buckets.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/bcachefs/buckets.h b/fs/bcachefs/buckets.h index 27f7659ca754..d35c96bcf3a1 100644 --- a/fs/bcachefs/buckets.h +++ b/fs/bcachefs/buckets.h @@ -149,11 +149,6 @@ static inline u8 ptr_stale(struct bch_dev *ca, /* bucket gc marks */ -static inline unsigned bucket_sectors_used(struct bucket_mark mark) -{ - return mark.dirty_sectors + mark.cached_sectors; -} - static inline bool is_available_bucket(struct bucket_mark mark) { return !mark.dirty_sectors && !mark.stripe; |