diff options
author | Carlos Maiolino <cmaiolino@redhat.com> | 2012-09-20 13:32:41 (GMT) |
---|---|---|
committer | Ben Myers <bpm@sgi.com> | 2012-09-26 21:01:28 (GMT) |
commit | 2ea0392983a82f7dc3055568ae0f2558724d119b (patch) | |
tree | 9fdbfef79a11341051d32d24c3889a61a3d8f848 /fs/xfs/xfs_super.c | |
parent | 4056c1d08d2a7c50ae7414db7c1783ba45b4835d (diff) | |
download | linux-fsl-qoriq-2ea0392983a82f7dc3055568ae0f2558724d119b.tar.xz |
xfs: Make inode32 a remountable option
As inode64 is the default option now, and was also made remountable
previously, inode32 can also be remounted on-the-fly when it is needed.
Signed-off-by: Carlos Maiolino <cmaiolino@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Mark Tinguely <tinguely@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_super.c')
-rw-r--r-- | fs/xfs/xfs_super.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/fs/xfs/xfs_super.c b/fs/xfs/xfs_super.c index 168d498..d93f2c7 100644 --- a/fs/xfs/xfs_super.c +++ b/fs/xfs/xfs_super.c @@ -122,13 +122,18 @@ mempool_t *xfs_ioend_pool; * in the future, too. */ enum { - Opt_barrier, Opt_nobarrier, Opt_inode64, Opt_err + Opt_barrier, + Opt_nobarrier, + Opt_inode64, + Opt_inode32, + Opt_err }; static const match_table_t tokens = { {Opt_barrier, "barrier"}, {Opt_nobarrier, "nobarrier"}, {Opt_inode64, "inode64"}, + {Opt_inode32, "inode32"}, {Opt_err, NULL} }; @@ -1141,6 +1146,9 @@ xfs_fs_remount( case Opt_inode64: mp->m_maxagi = xfs_set_inode64(mp); break; + case Opt_inode32: + mp->m_maxagi = xfs_set_inode32(mp); + break; default: /* * Logically we would return an error here to prevent |