summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent-tree.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2011-02-16 13:10:41 -0500
committerChris Mason <chris.mason@oracle.com>2011-02-16 15:28:36 -0500
commit91435650c233b93e0da389db74f4b2c11c5ad2d4 (patch)
treec4f8fef1348a0ac188dca47020d86b206ed5d41f /fs/btrfs/extent-tree.c
parentc26a920373a983b52223eed5a13b97404d8b4158 (diff)
downloadop-kernel-dev-91435650c233b93e0da389db74f4b2c11c5ad2d4.zip
op-kernel-dev-91435650c233b93e0da389db74f4b2c11c5ad2d4.tar.gz
Btrfs: put ENOSPC debugging under a mount option
ENOSPC in btrfs is getting to the point where the extra debugging isn't required. I've put it under mount -o enospc_debug just in case someone is having difficult problems. Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-rw-r--r--fs/btrfs/extent-tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
index a7aaa10..d375fc0 100644
--- a/fs/btrfs/extent-tree.c
+++ b/fs/btrfs/extent-tree.c
@@ -5377,7 +5377,7 @@ again:
num_bytes, data, 1);
goto again;
}
- if (ret == -ENOSPC) {
+ if (ret == -ENOSPC && btrfs_test_opt(root, ENOSPC_DEBUG)) {
struct btrfs_space_info *sinfo;
sinfo = __find_space_info(root->fs_info, data);
OpenPOWER on IntegriCloud