]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
Btrfs: Disable the dir fsync optimization to skip logging the dir sometimes
authorChris Mason <chris.mason@oracle.com>
Thu, 11 Sep 2008 21:42:42 +0000 (17:42 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 25 Sep 2008 15:04:07 +0000 (11:04 -0400)
More testing has turned up a bug, disable this for now.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/tree-log.c

index bfa7108009636d1f8fe1756ba76e380758147518..56de3fb2d8d5d539cb8f4ce0a90c49784349d42c 100644 (file)
@@ -2686,8 +2686,7 @@ next_slot:
                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;