aboutsummaryrefslogtreecommitdiffstats
path: root/fs/drop_caches.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/drop_caches.c')
-rw-r--r--fs/drop_caches.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/drop_caches.c b/fs/drop_caches.c
index 31f4b0e6d72c..9cd4e4a70f56 100644
--- a/fs/drop_caches.c
+++ b/fs/drop_caches.c
@@ -40,6 +40,8 @@ static void drop_pagecache(void)
40 spin_lock(&sb_lock); 40 spin_lock(&sb_lock);
41restart: 41restart:
42 list_for_each_entry(sb, &super_blocks, s_list) { 42 list_for_each_entry(sb, &super_blocks, s_list) {
43 if (list_empty(&sb->s_instances))
44 continue;
43 sb->s_count++; 45 sb->s_count++;
44 spin_unlock(&sb_lock); 46 spin_unlock(&sb_lock);
45 down_read(&sb->s_umount); 47 down_read(&sb->s_umount);