On Fri, Mar 22, 2013 at 02:55:07PM -0600, Stefan Priebe wrote:
> Hi Jsoef,
>
> thanks!
Ok I don't think the thing I just fixed will make any difference for you so
here's another debug patch, just apply it on top of what I've already sent you
and re-run and give me the dmesg again. Thanks,
Josef
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
index aabaea6..bf6433f 100644
--- a/fs/btrfs/extent-tree.c
+++ b/fs/btrfs/extent-tree.c
@@ -4162,7 +4162,11 @@ out:
}
if (flushing) {
if (ret == -ENOSPC) {
- printk(KERN_ERR "returning enospc, dumping space info\n");
+ spin_lock(&block_rsv->lock);
+ printk(KERN_ERR "returning enospc, space_info %u, size %Lu reserved %Lu, "
+ "flush %d, flush_state %d dumping space info\n", block_rsv->type,
+ block_rsv->size, block_rsv->reserved, flush, flush_state);
+ spin_unlock(&block_rsv->lock);
dump_space_info(space_info, 0, 0);
}
--
1.7.7.6
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html