mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-28 14:44:10 +08:00
restore cond_resched() in shrink_dcache_parent()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
1088a6408c
commit
4fb4887140
@ -1473,10 +1473,15 @@ void shrink_dcache_parent(struct dentry *parent)
|
||||
data.found = 0;
|
||||
|
||||
d_walk(parent, &data, select_collect);
|
||||
|
||||
if (!list_empty(&data.dispose)) {
|
||||
shrink_dentry_list(&data.dispose);
|
||||
continue;
|
||||
}
|
||||
|
||||
cond_resched();
|
||||
if (!data.found)
|
||||
break;
|
||||
|
||||
shrink_dentry_list(&data.dispose);
|
||||
}
|
||||
}
|
||||
EXPORT_SYMBOL(shrink_dcache_parent);
|
||||
|
Loading…
Reference in New Issue
Block a user