summaryrefslogtreecommitdiffstats
path: root/fs/buffer.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2010-03-22 20:09:33 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2010-05-21 18:31:15 -0400
commit6754af64641e8224c281ee5714e012e3ed41f701 (patch)
tree248a8c01aae46f98505d8c196393fae629f9691a /fs/buffer.c
parent8edd64bd6089e21f47dcdebb14b598b713213ddc (diff)
downloadlinux-6754af64641e8224c281ee5714e012e3ed41f701.tar.bz2
Convert simple loops over superblocks to list_for_each_entry_safe
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/buffer.c')
-rw-r--r--fs/buffer.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/fs/buffer.c b/fs/buffer.c
index 021ec4da9932..ded29b0fdac3 100644
--- a/fs/buffer.c
+++ b/fs/buffer.c
@@ -562,12 +562,11 @@ repeat:
static void do_thaw_all(struct work_struct *work)
{
- struct super_block *sb;
+ struct super_block *sb, *n;
char b[BDEVNAME_SIZE];
spin_lock(&sb_lock);
-restart:
- list_for_each_entry(sb, &super_blocks, s_list) {
+ list_for_each_entry_safe(sb, n, &super_blocks, s_list) {
if (list_empty(&sb->s_instances))
continue;
sb->s_count++;
@@ -578,8 +577,6 @@ restart:
bdevname(sb->s_bdev, b));
up_read(&sb->s_umount);
spin_lock(&sb_lock);
- if (__put_super_and_need_restart(sb))
- goto restart;
}
spin_unlock(&sb_lock);
kfree(work);