]> err.no Git - linux-2.6/commitdiff
[XFS] Fix v2 log bufsize reporting in /proc/mounts.
authorNathan Scott <nathans@sgi.com>
Wed, 11 Jan 2006 04:35:32 +0000 (15:35 +1100)
committerNathan Scott <nathans@sgi.com>
Wed, 11 Jan 2006 04:35:32 +0000 (15:35 +1100)
SGI-PV: 946760
SGI-Modid: xfs-linux-melb:xfs-kern:24765a

Signed-off-by: Nathan Scott <nathans@sgi.com>
fs/xfs/xfs_vfsops.c

index f22bebf8f51322305cefd70a16ae0a848c6e89cb..b6ad370fab3d839d7ff792ca9c03a33bf17a8b3f 100644 (file)
@@ -333,10 +333,11 @@ xfs_finish_flags(
 
        /* Fail a mount where the logbuf is smaller then the log stripe */
        if (XFS_SB_VERSION_HASLOGV2(&mp->m_sb)) {
-               if ((ap->logbufsize == -1) &&
+               if ((ap->logbufsize <= 0) &&
                    (mp->m_sb.sb_logsunit > XLOG_BIG_RECORD_BSIZE)) {
                        mp->m_logbsize = mp->m_sb.sb_logsunit;
-               } else if (ap->logbufsize < mp->m_sb.sb_logsunit) {
+               } else if (ap->logbufsize > 0 &&
+                          ap->logbufsize < mp->m_sb.sb_logsunit) {
                        cmn_err(CE_WARN,
        "XFS: logbuf size must be greater than or equal to log stripe size");
                        return XFS_ERROR(EINVAL);