diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2018-02-23 16:26:10 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2018-02-23 16:31:28 -0500 |
commit | e81ddd60234e26944c273b61ff3306187d39ef47 (patch) | |
tree | 85739ec4af94acfc2386768e6e01546e59de146e /fs/bcachefs/sysfs.c | |
parent | 18a307e5f4e68595ab64c89b9696e83a370712f5 (diff) |
bcachefs: track incompressible dataincompressible
Diffstat (limited to 'fs/bcachefs/sysfs.c')
-rw-r--r-- | fs/bcachefs/sysfs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/bcachefs/sysfs.c b/fs/bcachefs/sysfs.c index b7c1d03c412f..8cacac36cbe7 100644 --- a/fs/bcachefs/sysfs.c +++ b/fs/bcachefs/sysfs.c @@ -267,7 +267,8 @@ static ssize_t bch2_compression_stats(struct bch_fs *c, char *buf) struct bch_extent_crc_unpacked crc; extent_for_each_ptr_crc(e, ptr, crc) { - if (crc.compression_type == BCH_COMPRESSION_NONE) { + if (crc.compression_type == BCH_COMPRESSION_NONE || + crc.compression_type == BCH_COMPRESSION_INCOMPRESSIBLE) { nr_uncompressed_extents++; uncompressed_sectors += e.k->size; } else { |