]> git.hungrycats.org Git - linux/commit
btrfs: use cond_resched_lock where possible
authorDavid Sterba <dsterba@suse.cz>
Thu, 8 Jan 2015 14:20:54 +0000 (15:20 +0100)
committerZygo Blaxell <zblaxell@waya.furryterror.org>
Fri, 27 Mar 2015 03:33:08 +0000 (23:33 -0400)
commit817684d2281ef35cb26d156ace53d292ad737d1e
tree1a6bbd2b62ffb1a92a61139b46a54bc60aa8ded9
parent02e1e63f4c02daef2b903ebdfb142e97798bd912
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>
(cherry picked from commit 351810c1d2aafa288af61844d877941d516fb031)
fs/btrfs/file.c
fs/btrfs/free-space-cache.c
fs/btrfs/transaction.c