aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Sterba2015-01-08 15:15:19 +0100
committerDavid Sterba2015-03-03 17:23:55 +0100
commit853d8ec4b288ce52b49e12beeef0f3659ac423ce (patch)
treeab928b9582c90d0fdf96028a41e4018adc9f6c3c
parente57cf21e9787c081db4db6afa02e6e70112ee410 (diff)
btrfs: need_resched not needed with cond_resched
Cleanup, no special reason to do if (need_resched()) cond_resched(); Signed-off-by: David Sterba <dsterba@suse.cz>
-rw-r--r--fs/btrfs/volumes.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c
index 8222f6f74147..50bb7b8b17e8 100644
--- a/fs/btrfs/volumes.c
+++ b/fs/btrfs/volumes.c
@@ -366,8 +366,8 @@ loop_lock:
btrfsic_submit_bio(cur->bi_rw, cur);
num_run++;
batch_run++;
- if (need_resched())
- cond_resched();
+
+ cond_resched();
/*
* we made progress, there is more work to do and the bdi
@@ -400,8 +400,7 @@ loop_lock:
* against it before looping
*/
last_waited = ioc->last_waited;
- if (need_resched())
- cond_resched();
+ cond_resched();
continue;
}
spin_lock(&device->io_lock);