projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
dtsi: rk312x-sdk: update rk818 battery node
[firefly-linux-kernel-4.4.55.git]
/
fs
/
super.c
diff --git
a/fs/super.c
b/fs/super.c
index 68307c029228c51efc0e7967c90c39edd1a85113..e028b508db253ea3a134325fc5f8d2984554c1d9 100644
(file)
--- a/
fs/super.c
+++ b/
fs/super.c
@@
-76,6
+76,8
@@
static int prune_super(struct shrinker *shrink, struct shrink_control *sc)
total_objects = sb->s_nr_dentry_unused +
sb->s_nr_inodes_unused + fs_objects + 1;
+ if (!total_objects)
+ total_objects = 1;
if (sc->nr_to_scan) {
int dentries;