diff options
Diffstat (limited to 'fs/xfs/xfs_super.c')
-rw-r--r-- | fs/xfs/xfs_super.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/fs/xfs/xfs_super.c b/fs/xfs/xfs_super.c index 8f0333b3f7a0..12d3ad3203ff 100644 --- a/fs/xfs/xfs_super.c +++ b/fs/xfs/xfs_super.c | |||
@@ -446,7 +446,7 @@ done: | |||
446 | mp->m_logbufs > XLOG_MAX_ICLOGS)) { | 446 | mp->m_logbufs > XLOG_MAX_ICLOGS)) { |
447 | xfs_warn(mp, "invalid logbufs value: %d [not %d-%d]", | 447 | xfs_warn(mp, "invalid logbufs value: %d [not %d-%d]", |
448 | mp->m_logbufs, XLOG_MIN_ICLOGS, XLOG_MAX_ICLOGS); | 448 | mp->m_logbufs, XLOG_MIN_ICLOGS, XLOG_MAX_ICLOGS); |
449 | return XFS_ERROR(EINVAL); | 449 | return EINVAL; |
450 | } | 450 | } |
451 | if (mp->m_logbsize != -1 && | 451 | if (mp->m_logbsize != -1 && |
452 | mp->m_logbsize != 0 && | 452 | mp->m_logbsize != 0 && |
@@ -456,7 +456,7 @@ done: | |||
456 | xfs_warn(mp, | 456 | xfs_warn(mp, |
457 | "invalid logbufsize: %d [not 16k,32k,64k,128k or 256k]", | 457 | "invalid logbufsize: %d [not 16k,32k,64k,128k or 256k]", |
458 | mp->m_logbsize); | 458 | mp->m_logbsize); |
459 | return XFS_ERROR(EINVAL); | 459 | return EINVAL; |
460 | } | 460 | } |
461 | 461 | ||
462 | if (iosizelog) { | 462 | if (iosizelog) { |
@@ -465,7 +465,7 @@ done: | |||
465 | xfs_warn(mp, "invalid log iosize: %d [not %d-%d]", | 465 | xfs_warn(mp, "invalid log iosize: %d [not %d-%d]", |
466 | iosizelog, XFS_MIN_IO_LOG, | 466 | iosizelog, XFS_MIN_IO_LOG, |
467 | XFS_MAX_IO_LOG); | 467 | XFS_MAX_IO_LOG); |
468 | return XFS_ERROR(EINVAL); | 468 | return EINVAL; |
469 | } | 469 | } |
470 | 470 | ||
471 | mp->m_flags |= XFS_MOUNT_DFLT_IOSIZE; | 471 | mp->m_flags |= XFS_MOUNT_DFLT_IOSIZE; |
@@ -1336,14 +1336,14 @@ xfs_finish_flags( | |||
1336 | mp->m_logbsize < mp->m_sb.sb_logsunit) { | 1336 | mp->m_logbsize < mp->m_sb.sb_logsunit) { |
1337 | xfs_warn(mp, | 1337 | xfs_warn(mp, |
1338 | "logbuf size must be greater than or equal to log stripe size"); | 1338 | "logbuf size must be greater than or equal to log stripe size"); |
1339 | return XFS_ERROR(EINVAL); | 1339 | return EINVAL; |
1340 | } | 1340 | } |
1341 | } else { | 1341 | } else { |
1342 | /* Fail a mount if the logbuf is larger than 32K */ | 1342 | /* Fail a mount if the logbuf is larger than 32K */ |
1343 | if (mp->m_logbsize > XLOG_BIG_RECORD_BSIZE) { | 1343 | if (mp->m_logbsize > XLOG_BIG_RECORD_BSIZE) { |
1344 | xfs_warn(mp, | 1344 | xfs_warn(mp, |
1345 | "logbuf size for version 1 logs must be 16K or 32K"); | 1345 | "logbuf size for version 1 logs must be 16K or 32K"); |
1346 | return XFS_ERROR(EINVAL); | 1346 | return EINVAL; |
1347 | } | 1347 | } |
1348 | } | 1348 | } |
1349 | 1349 | ||
@@ -1355,7 +1355,7 @@ xfs_finish_flags( | |||
1355 | xfs_warn(mp, | 1355 | xfs_warn(mp, |
1356 | "Cannot mount a V5 filesystem as %s. %s is always enabled for V5 filesystems.", | 1356 | "Cannot mount a V5 filesystem as %s. %s is always enabled for V5 filesystems.", |
1357 | MNTOPT_NOATTR2, MNTOPT_ATTR2); | 1357 | MNTOPT_NOATTR2, MNTOPT_ATTR2); |
1358 | return XFS_ERROR(EINVAL); | 1358 | return EINVAL; |
1359 | } | 1359 | } |
1360 | 1360 | ||
1361 | /* | 1361 | /* |
@@ -1372,7 +1372,7 @@ xfs_finish_flags( | |||
1372 | if ((mp->m_sb.sb_flags & XFS_SBF_READONLY) && !ronly) { | 1372 | if ((mp->m_sb.sb_flags & XFS_SBF_READONLY) && !ronly) { |
1373 | xfs_warn(mp, | 1373 | xfs_warn(mp, |
1374 | "cannot mount a read-only filesystem as read-write"); | 1374 | "cannot mount a read-only filesystem as read-write"); |
1375 | return XFS_ERROR(EROFS); | 1375 | return EROFS; |
1376 | } | 1376 | } |
1377 | 1377 | ||
1378 | if ((mp->m_qflags & (XFS_GQUOTA_ACCT | XFS_GQUOTA_ACTIVE)) && | 1378 | if ((mp->m_qflags & (XFS_GQUOTA_ACCT | XFS_GQUOTA_ACTIVE)) && |
@@ -1380,7 +1380,7 @@ xfs_finish_flags( | |||
1380 | !xfs_sb_version_has_pquotino(&mp->m_sb)) { | 1380 | !xfs_sb_version_has_pquotino(&mp->m_sb)) { |
1381 | xfs_warn(mp, | 1381 | xfs_warn(mp, |
1382 | "Super block does not support project and group quota together"); | 1382 | "Super block does not support project and group quota together"); |
1383 | return XFS_ERROR(EINVAL); | 1383 | return EINVAL; |
1384 | } | 1384 | } |
1385 | 1385 | ||
1386 | return 0; | 1386 | return 0; |