btrfs: use cond_resched_lock where possible
authorDavid Sterba <dsterba@suse.cz>
Thu, 8 Jan 2015 14:20:54 +0000 (15:20 +0100)
committerDavid Sterba <dsterba@suse.cz>
Tue, 3 Mar 2015 16:23:56 +0000 (17:23 +0100)
commit351810c1d2aafa288af61844d877941d516fb031
tree895beffc58abf520af6b1672d1245bb889e1ec11
parent853d8ec4b288ce52b49e12beeef0f3659ac423ce
btrfs: use cond_resched_lock where possible

Clean the opencoded variant, cond_resched_lock also checks the lock for
contention so it might help in some cases that were not covered by
simple need_resched().

Signed-off-by: David Sterba <dsterba@suse.cz>
fs/btrfs/file.c
fs/btrfs/free-space-cache.c
fs/btrfs/transaction.c