aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2009-04-02 16:49:40 -0400
committerChris Mason <chris.mason@oracle.com>2009-04-02 16:49:40 -0400
commit3a5e14048a0a81276d284cbda441507a17e26147 (patch)
tree42464c2455216b008bf27c13496d001bb85d3564 /fs/btrfs/ctree.h
parenta9572a15a854bd40453a6b7b4dd9d29132f64c64 (diff)
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 {
1036#define BTRFS_MOUNT_SSD (1 << 3) 1036#define BTRFS_MOUNT_SSD (1 << 3)
1037#define BTRFS_MOUNT_DEGRADED (1 << 4) 1037#define BTRFS_MOUNT_DEGRADED (1 << 4)
1038#define BTRFS_MOUNT_COMPRESS (1 << 5) 1038#define BTRFS_MOUNT_COMPRESS (1 << 5)
1039#define BTRFS_MOUNT_NOTREELOG (1 << 6)
1039 1040
1040#define btrfs_clear_opt(o, opt) ((o) &= ~BTRFS_MOUNT_##opt) 1041#define btrfs_clear_opt(o, opt) ((o) &= ~BTRFS_MOUNT_##opt)
1041#define btrfs_set_opt(o, opt) ((o) |= BTRFS_MOUNT_##opt) 1042#define btrfs_set_opt(o, opt) ((o) |= BTRFS_MOUNT_##opt)