diff options
Diffstat (limited to 'fs/btrfs/free-space-cache.c')
-rw-r--r-- | fs/btrfs/free-space-cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/free-space-cache.c b/fs/btrfs/free-space-cache.c index 6c4e2baa9290..6b10acfc2f5c 100644 --- a/fs/btrfs/free-space-cache.c +++ b/fs/btrfs/free-space-cache.c | |||
@@ -1968,7 +1968,7 @@ void btrfs_dump_free_space(struct btrfs_block_group_cache *block_group, | |||
1968 | 1968 | ||
1969 | for (n = rb_first(&ctl->free_space_offset); n; n = rb_next(n)) { | 1969 | for (n = rb_first(&ctl->free_space_offset); n; n = rb_next(n)) { |
1970 | info = rb_entry(n, struct btrfs_free_space, offset_index); | 1970 | info = rb_entry(n, struct btrfs_free_space, offset_index); |
1971 | if (info->bytes >= bytes) | 1971 | if (info->bytes >= bytes && !block_group->ro) |
1972 | count++; | 1972 | count++; |
1973 | printk(KERN_CRIT "entry offset %llu, bytes %llu, bitmap %s\n", | 1973 | printk(KERN_CRIT "entry offset %llu, bytes %llu, bitmap %s\n", |
1974 | (unsigned long long)info->offset, | 1974 | (unsigned long long)info->offset, |