xfs: Fix mp->m_maxagi update during inode64 remount
authorCarlos Maiolino <cmaiolino@redhat.com>
Thu, 20 Sep 2012 13:32:39 +0000 (10:32 -0300)
committerBen Myers <bpm@sgi.com>
Wed, 26 Sep 2012 20:58:21 +0000 (15:58 -0500)
With the changes made on xfs_set_inode64(), to make it behave as
xfs_set_inode32() (now leaving to the caller the responsibility to update
mp->m_maxagi), we use the return value of xfs_set_inode64() to update
mp->m_maxagi during remount.

Signed-off-by: Carlos Maiolino <cmaiolino@redhat.com>
Reviewed-by: Mark Tinguely <tinguely@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
fs/xfs/xfs_super.c

index d6619d6..aeb03f9 100644 (file)
@@ -1130,7 +1130,7 @@ xfs_fs_remount(
                        mp->m_flags &= ~XFS_MOUNT_BARRIER;
                        break;
                case Opt_inode64:
-                       xfs_set_inode64(mp);
+                       mp->m_maxagi = xfs_set_inode64(mp);
                        break;
                default:
                        /*