summaryrefslogtreecommitdiff
path: root/fs/bcachefs/sysfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/bcachefs/sysfs.c')
-rw-r--r--fs/bcachefs/sysfs.c3
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 {