]> Pileus Git - ~andy/linux/blobdiff - fs/btrfs/free-space-cache.c
Btrfs: fix cur_ino < parent_ino case for send/receive
[~andy/linux] / fs / btrfs / free-space-cache.c
index 6c4e2baa9290e16d06a4a8dfc5c3b05880cfeb27..6b10acfc2f5cae609fca043caba43f0d57b60dd2 100644 (file)
@@ -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,