瀏覽代碼

Btrfs: Disable the dir fsync optimization to skip logging the dir sometimes

More testing has turned up a bug, disable this for now.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
Chris Mason 16 年之前
父節點
當前提交
9623f9a389
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      fs/btrfs/tree-log.c

+ 1 - 2
fs/btrfs/tree-log.c

@@ -2686,8 +2686,7 @@ next_slot:
 		ins_nr = 0;
 		ins_nr = 0;
 	}
 	}
 	WARN_ON(ins_nr);
 	WARN_ON(ins_nr);
-	if (inode_only == LOG_INODE_ALL && S_ISDIR(inode->i_mode) &&
-	    BTRFS_I(inode)->log_dirty_trans >= trans->transid) {
+	if (inode_only == LOG_INODE_ALL && S_ISDIR(inode->i_mode)) {
 		btrfs_release_path(root, path);
 		btrfs_release_path(root, path);
 		btrfs_release_path(log, dst_path);
 		btrfs_release_path(log, dst_path);
 		BTRFS_I(inode)->log_dirty_trans = 0;
 		BTRFS_I(inode)->log_dirty_trans = 0;