git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Leave superblocks on s_list until the end
[safe/jmp/linux-2.6]
/
fs
/
drop_caches.c
diff --git
a/fs/drop_caches.c
b/fs/drop_caches.c
index
31f4b0e
..
9cd4e4a
100644
(file)
--- a/
fs/drop_caches.c
+++ b/
fs/drop_caches.c
@@
-40,6
+40,8
@@
static void drop_pagecache(void)
spin_lock(&sb_lock);
restart:
list_for_each_entry(sb, &super_blocks, s_list) {
+ if (list_empty(&sb->s_instances))
+ continue;
sb->s_count++;
spin_unlock(&sb_lock);
down_read(&sb->s_umount);