Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -2686,8 +2686,7 @@ static int __btrfs_log_inode(struct btrfs_trans_handle *trans,
		ins_nr = 0;
	}
	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(log, dst_path);
		BTRFS_I(inode)->log_dirty_trans = 0;