diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2010-03-22 19:36:35 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2010-05-21 18:31:14 -0400 |
commit | 551de6f34dfeefbeeadb32909c387d393114ecc8 (patch) | |
tree | 822af803e7e75ed476b0a176639c162e0395910d /fs/quota/quota.c | |
parent | 1712ac8fda7d8bc4dc921f5777b7423aacad7263 (diff) |
Leave superblocks on s_list until the end
We used to remove from s_list and s_instances at the same
time. So let's *not* do the former and skip superblocks
that have empty s_instances in the loops over s_list.
The next step, of course, will be to get rid of rescan logics
in those loops.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/quota/quota.c')
-rw-r--r-- | fs/quota/quota.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/quota/quota.c b/fs/quota/quota.c index cfc78826da90..4669e7e639bd 100644 --- a/fs/quota/quota.c +++ b/fs/quota/quota.c | |||
@@ -59,6 +59,8 @@ static int quota_sync_all(int type) | |||
59 | spin_lock(&sb_lock); | 59 | spin_lock(&sb_lock); |
60 | restart: | 60 | restart: |
61 | list_for_each_entry(sb, &super_blocks, s_list) { | 61 | list_for_each_entry(sb, &super_blocks, s_list) { |
62 | if (list_empty(&sb->s_instances)) | ||
63 | continue; | ||
62 | if (!sb->s_qcop || !sb->s_qcop->quota_sync) | 64 | if (!sb->s_qcop || !sb->s_qcop->quota_sync) |
63 | continue; | 65 | continue; |
64 | 66 | ||