summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorSage Weil2009-04-02 22:49:40 +0200
committerChris Mason2009-04-02 22:49:40 +0200
commit3a5e14048a0a81276d284cbda441507a17e26147 (patch)
tree42464c2455216b008bf27c13496d001bb85d3564 /fs/btrfs/ctree.h
parentBtrfs: introduce btrfs_show_options (diff)
downloadkernel-qcow2-linux-3a5e14048a0a81276d284cbda441507a17e26147.tar.gz
kernel-qcow2-linux-3a5e14048a0a81276d284cbda441507a17e26147.tar.xz
kernel-qcow2-linux-3a5e14048a0a81276d284cbda441507a17e26147.zip
Btrfs: notreelog mount option
Add a 'notreelog' mount option to disable the tree log (used by fsync, O_SYNC writes). This is much slower, but the tree logging produces inconsistent views into the FS for ceph. Signed-off-by: Sage Weil <sage@newdream.net> 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 b82931f97ef3..1e99a9948637 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -1036,6 +1036,7 @@ struct btrfs_root {
#define BTRFS_MOUNT_SSD (1 << 3)
#define BTRFS_MOUNT_DEGRADED (1 << 4)
#define BTRFS_MOUNT_COMPRESS (1 << 5)
+#define BTRFS_MOUNT_NOTREELOG (1 << 6)
#define btrfs_clear_opt(o, opt) ((o) &= ~BTRFS_MOUNT_##opt)
#define btrfs_set_opt(o, opt) ((o) |= BTRFS_MOUNT_##opt)