Skip to content

Commit e50bd16

Browse files
committed
[XFS] Fix superblock validation regression for the zero imaxpct case.
Thanks to kjamieson for noticing. SGI-PV: 951661 SGI-Modid: xfs-linux-melb:xfs-kern:25675a Signed-off-by: Nathan Scott <[email protected]>
1 parent 30d41bf commit e50bd16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/xfs/xfs_mount.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ xfs_mount_validate_sb(
270270
(sbp->sb_blocklog - sbp->sb_inodelog != sbp->sb_inopblog) ||
271271
(sbp->sb_rextsize * sbp->sb_blocksize > XFS_MAX_RTEXTSIZE) ||
272272
(sbp->sb_rextsize * sbp->sb_blocksize < XFS_MIN_RTEXTSIZE) ||
273-
(sbp->sb_imax_pct > 100 || sbp->sb_imax_pct < 1))) {
273+
(sbp->sb_imax_pct > 100 /* zero sb_imax_pct is valid */))) {
274274
xfs_fs_mount_cmn_err(flags, "SB sanity check 1 failed");
275275
return XFS_ERROR(EFSCORRUPTED);
276276
}

0 commit comments

Comments
 (0)