Btrfs: notreelog mount option
[linux-2.6-block.git] / fs / btrfs / tree-log.c
index 2871609641f5b2a401bdc4010fe1de5438c8efab..c047eea4093fcd650e09bac8f1618a1262cb91d8 100644 (file)
@@ -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;