summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorChris Mason2011-02-16 19:10:41 +0100
committerChris Mason2011-02-16 21:28:36 +0100
commit91435650c233b93e0da389db74f4b2c11c5ad2d4 (patch)
treec4f8fef1348a0ac188dca47020d86b206ed5d41f /fs/btrfs/ctree.h
parentBtrfs: check return value of alloc_extent_map() (diff)
downloadkernel-qcow2-linux-91435650c233b93e0da389db74f4b2c11c5ad2d4.tar.gz
kernel-qcow2-linux-91435650c233b93e0da389db74f4b2c11c5ad2d4.tar.xz
kernel-qcow2-linux-91435650c233b93e0da389db74f4b2c11c5ad2d4.zip
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/ctree.h')
-rw-r--r--fs/btrfs/ctree.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index 72195378bef9..6297701bc19c 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -1254,6 +1254,7 @@ struct btrfs_root {
#define BTRFS_MOUNT_SPACE_CACHE (1 << 12)
#define BTRFS_MOUNT_CLEAR_CACHE (1 << 13)
#define BTRFS_MOUNT_USER_SUBVOL_RM_ALLOWED (1 << 14)
+#define BTRFS_MOUNT_ENOSPC_DEBUG (1 << 15)
#define btrfs_clear_opt(o, opt) ((o) &= ~BTRFS_MOUNT_##opt)
#define btrfs_set_opt(o, opt) ((o) |= BTRFS_MOUNT_##opt)