summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/tree-log.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/tree-log.c')
-rw-r--r--fs/btrfs/tree-log.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/btrfs/tree-log.c b/fs/btrfs/tree-log.c
index 79f75bec9f40..dc030f620be1 100644
--- a/fs/btrfs/tree-log.c
+++ b/fs/btrfs/tree-log.c
@@ -139,7 +139,7 @@ static int start_log_trans(struct btrfs_trans_handle *trans,
139 mutex_lock(&root->log_mutex); 139 mutex_lock(&root->log_mutex);
140 140
141 if (root->log_root) { 141 if (root->log_root) {
142 if (btrfs_need_log_full_commit(fs_info, trans)) { 142 if (btrfs_need_log_full_commit(trans)) {
143 ret = -EAGAIN; 143 ret = -EAGAIN;
144 goto out; 144 goto out;
145 } 145 }
@@ -3077,7 +3077,7 @@ int btrfs_sync_log(struct btrfs_trans_handle *trans,
3077 } 3077 }
3078 3078
3079 /* bail out if we need to do a full commit */ 3079 /* bail out if we need to do a full commit */
3080 if (btrfs_need_log_full_commit(fs_info, trans)) { 3080 if (btrfs_need_log_full_commit(trans)) {
3081 ret = -EAGAIN; 3081 ret = -EAGAIN;
3082 mutex_unlock(&root->log_mutex); 3082 mutex_unlock(&root->log_mutex);
3083 goto out; 3083 goto out;
@@ -3184,7 +3184,7 @@ int btrfs_sync_log(struct btrfs_trans_handle *trans,
3184 * now that we've moved on to the tree of log tree roots, 3184 * now that we've moved on to the tree of log tree roots,
3185 * check the full commit flag again 3185 * check the full commit flag again
3186 */ 3186 */
3187 if (btrfs_need_log_full_commit(fs_info, trans)) { 3187 if (btrfs_need_log_full_commit(trans)) {
3188 blk_finish_plug(&plug); 3188 blk_finish_plug(&plug);
3189 btrfs_wait_tree_log_extents(log, mark); 3189 btrfs_wait_tree_log_extents(log, mark);
3190 mutex_unlock(&log_root_tree->log_mutex); 3190 mutex_unlock(&log_root_tree->log_mutex);