Commit 9623f9a3 authored by Chris Mason's avatar Chris Mason

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: default avatarChris Mason <chris.mason@oracle.com>
parent d0c803c4
...@@ -2686,8 +2686,7 @@ static int __btrfs_log_inode(struct btrfs_trans_handle *trans, ...@@ -2686,8 +2686,7 @@ static int __btrfs_log_inode(struct btrfs_trans_handle *trans,
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) && if (inode_only == LOG_INODE_ALL && S_ISDIR(inode->i_mode)) {
BTRFS_I(inode)->log_dirty_trans >= trans->transid) {
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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment