Skip to content

Commit 9e4f095

Browse files
author
Andreas Gruenbacher
committed
gfs2: Reconfiguring frozen filesystem already rejected
Reconfiguring a frozen filesystem is already rejected in reconfigure_super(), so there is no need to check for that condition again at the filesystem level. Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
1 parent e392edd commit 9e4f095

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

fs/gfs2/ops_fstype.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1590,20 +1590,13 @@ static int gfs2_reconfigure(struct fs_context *fc)
15901590
fc->sb_flags |= SB_RDONLY;
15911591

15921592
if ((sb->s_flags ^ fc->sb_flags) & SB_RDONLY) {
1593-
struct gfs2_holder freeze_gh;
1594-
1595-
error = gfs2_freeze_lock_shared(sdp, &freeze_gh, 0);
1596-
if (error)
1597-
return -EINVAL;
1598-
15991593
if (fc->sb_flags & SB_RDONLY) {
16001594
gfs2_make_fs_ro(sdp);
16011595
} else {
16021596
error = gfs2_make_fs_rw(sdp);
16031597
if (error)
16041598
errorfc(fc, "unable to remount read-write");
16051599
}
1606-
gfs2_freeze_unlock(&freeze_gh);
16071600
}
16081601
sdp->sd_args = *newargs;
16091602

0 commit comments

Comments
 (0)