diff options
author | Sage Weil <sage@newdream.net> | 2009-04-02 16:49:40 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2009-04-02 16:49:40 -0400 |
commit | 3a5e14048a0a81276d284cbda441507a17e26147 (patch) | |
tree | 42464c2455216b008bf27c13496d001bb85d3564 /fs/btrfs/tree-log.c | |
parent | a9572a15a854bd40453a6b7b4dd9d29132f64c64 (diff) | |
download | op-kernel-dev-3a5e14048a0a81276d284cbda441507a17e26147.zip op-kernel-dev-3a5e14048a0a81276d284cbda441507a17e26147.tar.gz |
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/tree-log.c')
-rw-r--r-- | fs/btrfs/tree-log.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/btrfs/tree-log.c b/fs/btrfs/tree-log.c index 2871609..c047eea 100644 --- a/fs/btrfs/tree-log.c +++ b/fs/btrfs/tree-log.c @@ -2898,6 +2898,11 @@ int btrfs_log_inode_parent(struct btrfs_trans_handle *trans, sb = inode->i_sb; + if (btrfs_test_opt(root, NOTREELOG)) { + ret = 1; + goto end_no_trans; + } + if (root->fs_info->last_trans_log_full_commit > root->fs_info->last_trans_committed) { ret = 1; |