projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1088a64
)
restore cond_resched() in shrink_dcache_parent()
author
Al Viro
<viro@zeniv.linux.org.uk>
Fri, 20 Apr 2018 03:58:48 +0000
(23:58 -0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Fri, 20 Apr 2018 03:58:48 +0000
(23:58 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/dcache.c
patch
|
blob
|
history
diff --git
a/fs/dcache.c
b/fs/dcache.c
index c4d2234eccc36b116abbb2bab5189995584d1bad..60df712262c2e5245e907b699bcd7d1803e864ba 100644
(file)
--- a/
fs/dcache.c
+++ b/
fs/dcache.c
@@
-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);