Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 197946
b: refs/heads/master
c: df40c01
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro committed May 21, 2010
1 parent b3e4668 commit 0e93067
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1494583de59dfad2e3a6788ce9817e658d32df22
refs/heads/master: df40c01a9249873e4ad0625ae5d9fb831962b75c
18 changes: 10 additions & 8 deletions trunk/fs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ void sync_supers(void)
* mounted on the device given. %NULL is returned if no match is found.
*/

struct super_block * get_super(struct block_device *bdev)
struct super_block *get_super(struct block_device *bdev)
{
struct super_block *sb;

Expand All @@ -441,13 +441,14 @@ struct super_block * get_super(struct block_device *bdev)
sb->s_count++;
spin_unlock(&sb_lock);
down_read(&sb->s_umount);
/* still alive? */
if (sb->s_root)
return sb;
up_read(&sb->s_umount);
/* restart only when sb is no longer on the list */
/* nope, got unmounted */
spin_lock(&sb_lock);
if (__put_super_and_need_restart(sb))
goto rescan;
__put_super(sb);
goto rescan;
}
}
spin_unlock(&sb_lock);
Expand Down Expand Up @@ -487,7 +488,7 @@ struct super_block *get_active_super(struct block_device *bdev)
return NULL;
}

struct super_block * user_get_super(dev_t dev)
struct super_block *user_get_super(dev_t dev)
{
struct super_block *sb;

Expand All @@ -500,13 +501,14 @@ struct super_block * user_get_super(dev_t dev)
sb->s_count++;
spin_unlock(&sb_lock);
down_read(&sb->s_umount);
/* still alive? */
if (sb->s_root)
return sb;
up_read(&sb->s_umount);
/* restart only when sb is no longer on the list */
/* nope, got unmounted */
spin_lock(&sb_lock);
if (__put_super_and_need_restart(sb))
goto rescan;
__put_super(sb);
goto rescan;
}
}
spin_unlock(&sb_lock);
Expand Down

0 comments on commit 0e93067

Please sign in to comment.