aboutsummaryrefslogtreecommitdiffstats
path: root/fs/super.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/super.c')
-rw-r--r--fs/super.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/super.c b/fs/super.c
index f5f96e52e0cd..7429588d6b49 100644
--- a/fs/super.c
+++ b/fs/super.c
@@ -144,6 +144,9 @@ static unsigned long super_cache_count(struct shrinker *shrink,
144 total_objects += list_lru_shrink_count(&sb->s_dentry_lru, sc); 144 total_objects += list_lru_shrink_count(&sb->s_dentry_lru, sc);
145 total_objects += list_lru_shrink_count(&sb->s_inode_lru, sc); 145 total_objects += list_lru_shrink_count(&sb->s_inode_lru, sc);
146 146
147 if (!total_objects)
148 return SHRINK_EMPTY;
149
147 total_objects = vfs_pressure_ratio(total_objects); 150 total_objects = vfs_pressure_ratio(total_objects);
148 return total_objects; 151 return total_objects;
149} 152}