Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 197952
b: refs/heads/master
c: d3f2147
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro committed May 21, 2010
1 parent 7b399f4 commit 2e5739e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 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: 7ed1ee6118ae77330cae2a6d5e9383532f7dfb48
refs/heads/master: d3f2147307cce9eac56dd91d381709aa3f1615b3
1 change: 1 addition & 0 deletions trunk/fs/block_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ struct super_block *freeze_bdev(struct block_device *bdev)
sb = get_active_super(bdev);
if (!sb)
goto out;
down_write(&sb->s_umount);
if (sb->s_flags & MS_RDONLY) {
sb->s_frozen = SB_FREEZE_TRANS;
up_write(&sb->s_umount);
Expand Down
4 changes: 2 additions & 2 deletions trunk/fs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,6 @@ static int grab_super(struct super_block *s) __releases(sb_lock)
{
if (atomic_inc_not_zero(&s->s_active)) {
spin_unlock(&sb_lock);
down_write(&s->s_umount);
return 1;
}
/* it's going away */
Expand Down Expand Up @@ -317,6 +316,7 @@ struct super_block *sget(struct file_system_type *type,
up_write(&s->s_umount);
destroy_super(s);
}
down_write(&old->s_umount);
return old;
}
}
Expand Down Expand Up @@ -466,7 +466,7 @@ EXPORT_SYMBOL(get_super);
*
* Scans the superblock list and finds the superblock of the file system
* mounted on the device given. Returns the superblock with an active
* reference and s_umount held exclusively or %NULL if none was found.
* reference or %NULL if none was found.
*/
struct super_block *get_active_super(struct block_device *bdev)
{
Expand Down

0 comments on commit 2e5739e

Please sign in to comment.