diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2015-01-11 10:57:27 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2015-01-25 23:17:28 -0500 |
commit | fdab684d7202774bfd8762d4a656a553b787c8ec (patch) | |
tree | 8ddb298648037f9abd37bc3b263e53695ceb9ce2 /fs/super.c | |
parent | 3b994d98a815d934ab6a77a380882865982c14f9 (diff) |
allow attaching fs_pin to a group not associated with some superblock
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/super.c')
-rw-r--r-- | fs/super.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/super.c b/fs/super.c index eae088f6aaae..2d822459bc3d 100644 --- a/fs/super.c +++ b/fs/super.c | |||
@@ -706,9 +706,9 @@ int do_remount_sb(struct super_block *sb, int flags, void *data, int force) | |||
706 | remount_ro = (flags & MS_RDONLY) && !(sb->s_flags & MS_RDONLY); | 706 | remount_ro = (flags & MS_RDONLY) && !(sb->s_flags & MS_RDONLY); |
707 | 707 | ||
708 | if (remount_ro) { | 708 | if (remount_ro) { |
709 | if (sb->s_pins.first) { | 709 | if (!hlist_empty(&sb->s_pins)) { |
710 | up_write(&sb->s_umount); | 710 | up_write(&sb->s_umount); |
711 | sb_pin_kill(sb); | 711 | group_pin_kill(&sb->s_pins); |
712 | down_write(&sb->s_umount); | 712 | down_write(&sb->s_umount); |
713 | if (!sb->s_root) | 713 | if (!sb->s_root) |
714 | return 0; | 714 | return 0; |