vfs: add cond_resched_lock while scanning dentry LRU lists
authorKentaro Makita <k-makita@np.css.fujitsu.com>
Sat, 26 Jul 2008 02:44:40 +0000 (19:44 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 26 Jul 2008 19:00:02 +0000 (12:00 -0700)
commitf3c6ba986ab4527b6dfacf9f3b9e40f72466a8b2
treef240cc15f23afba6f987e6e61c41a04c30537040
parenta76eef9573c93f8f324ebacfd090a3e319a64d59
vfs: add cond_resched_lock while scanning dentry LRU lists

Add cond_resched_lock(&dcache_lock) while scanning LRU lists on
superblocks in __shrink_dcache_sb()

Signed-off-by: Kentaro Makita <k-makita@np.css.fujitsu.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/dcache.c