diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2010-03-23 16:11:05 +0100 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2010-05-22 00:31:17 +0200 |
commit | d3f2147307cce9eac56dd91d381709aa3f1615b3 (patch) | |
tree | c1512bc87bdd657d379c6cf67f9c84436ad8fb52 /fs/block_dev.c | |
parent | Take statfs variants to fs/statfs.c (diff) | |
download | linux-d3f2147307cce9eac56dd91d381709aa3f1615b3.tar.xz linux-d3f2147307cce9eac56dd91d381709aa3f1615b3.zip |
Move grabbing s_umount to callers of grab_super()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/block_dev.c')
-rw-r--r-- | fs/block_dev.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/block_dev.c b/fs/block_dev.c index 6dcee88c2e5d..39cb6591d37d 100644 --- a/fs/block_dev.c +++ b/fs/block_dev.c @@ -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); |