summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/tree-log.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-09-11 17:42:42 -0400
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:04:07 -0400
commit9623f9a3894ec95fe140ee5460bb840ac53bc6a0 (patch)
treee83d9907093f032cf4b5a4260815dd832bd5fb3f /fs/btrfs/tree-log.c
parentd0c803c4049c5ca322d4795d8b74f28768603e0e (diff)
downloadkernel-crypto-9623f9a3894ec95fe140ee5460bb840ac53bc6a0.tar.gz
kernel-crypto-9623f9a3894ec95fe140ee5460bb840ac53bc6a0.tar.xz
kernel-crypto-9623f9a3894ec95fe140ee5460bb840ac53bc6a0.zip
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>
Diffstat (limited to 'fs/btrfs/tree-log.c')
-rw-r--r--fs/btrfs/tree-log.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/tree-log.c b/fs/btrfs/tree-log.c
index bfa71080096..56de3fb2d8d 100644
--- a/fs/btrfs/tree-log.c
+++ b/fs/btrfs/tree-log.c
@@ -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;