diff options
author | chandan <chandan@linux.vnet.ibm.com> | 2013-10-14 09:14:39 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2013-11-11 22:01:37 -0500 |
commit | 5ede859b00af261c78b3848a362253c76652e035 (patch) | |
tree | 0f69e3234318192fba22dd190624c34418dc8640 /fs | |
parent | 3c77bd94ecb4ad2653d1e3eb22295018533a1e21 (diff) |
Btrfs: btrfs_add_ordered_operation: Fix last modified transaction comparison.
Comparison of an inode's last modified transaction with the last committed
transaction is incorrect. Fix it.
Signed-off-by: chandan <chandan@linux.vnet.ibm.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/btrfs/ordered-data.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/ordered-data.c b/fs/btrfs/ordered-data.c index c702cb62f78a..1a36a0c3ee27 100644 --- a/fs/btrfs/ordered-data.c +++ b/fs/btrfs/ordered-data.c | |||
@@ -1076,7 +1076,7 @@ void btrfs_add_ordered_operation(struct btrfs_trans_handle *trans, | |||
1076 | * if this file hasn't been changed since the last transaction | 1076 | * if this file hasn't been changed since the last transaction |
1077 | * commit, we can safely return without doing anything | 1077 | * commit, we can safely return without doing anything |
1078 | */ | 1078 | */ |
1079 | if (last_mod < root->fs_info->last_trans_committed) | 1079 | if (last_mod <= root->fs_info->last_trans_committed) |
1080 | return; | 1080 | return; |
1081 | 1081 | ||
1082 | spin_lock(&root->fs_info->ordered_root_lock); | 1082 | spin_lock(&root->fs_info->ordered_root_lock); |