Skip to content

Commit 1708edc

Browse files
committed
gfs2: Reconfiguring frozen filesystem already rejected
jira LE-1907 Rebuild_History Non-Buildable kernel-4.18.0-477.27.1.el8_8 commit-author Andreas Gruenbacher <[email protected]> commit 9e4f095 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 <[email protected]> (cherry picked from commit 9e4f095) Signed-off-by: Jonathan Maple <[email protected]>
1 parent f1c787a commit 1708edc

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

fs/gfs2/ops_fstype.c

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

15661566
if ((sb->s_flags ^ fc->sb_flags) & SB_RDONLY) {
1567-
struct gfs2_holder freeze_gh;
1568-
1569-
error = gfs2_freeze_lock_shared(sdp, &freeze_gh, 0);
1570-
if (error)
1571-
return -EINVAL;
1572-
15731567
if (fc->sb_flags & SB_RDONLY) {
15741568
gfs2_make_fs_ro(sdp);
15751569
} else {
15761570
error = gfs2_make_fs_rw(sdp);
15771571
if (error)
15781572
errorfc(fc, "unable to remount read-write");
15791573
}
1580-
gfs2_freeze_unlock(&freeze_gh);
15811574
}
15821575
sdp->sd_args = *newargs;
15831576

0 commit comments

Comments
 (0)