mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-08 15:04:45 +00:00
Btrfs: do not count in readonly bytes
If a block group is ro, do not count its entries in when we dump space info. Signed-off-by: Liu Bo <liubo2009@cn.fujitsu.com> Signed-off-by: Josef Bacik <jbacik@fusionio.com>
This commit is contained in:
parent
799ffc3c31
commit
f6175efab1
@ -1968,7 +1968,7 @@ void btrfs_dump_free_space(struct btrfs_block_group_cache *block_group,
|
||||
|
||||
for (n = rb_first(&ctl->free_space_offset); n; n = rb_next(n)) {
|
||||
info = rb_entry(n, struct btrfs_free_space, offset_index);
|
||||
if (info->bytes >= bytes)
|
||||
if (info->bytes >= bytes && !block_group->ro)
|
||||
count++;
|
||||
printk(KERN_CRIT "entry offset %llu, bytes %llu, bitmap %s\n",
|
||||
(unsigned long long)info->offset,
|
||||
|
Loading…
Reference in New Issue
Block a user