Commit 2ea03929 authored by Carlos Maiolino's avatar Carlos Maiolino Committed by Ben Myers

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: default avatarCarlos Maiolino <cmaiolino@redhat.com>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarMark Tinguely <tinguely@sgi.com>
Signed-off-by: default avatarBen Myers <bpm@sgi.com>
parent 4056c1d0
...@@ -122,13 +122,18 @@ mempool_t *xfs_ioend_pool; ...@@ -122,13 +122,18 @@ mempool_t *xfs_ioend_pool;
* in the future, too. * in the future, too.
*/ */
enum { 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 = { static const match_table_t tokens = {
{Opt_barrier, "barrier"}, {Opt_barrier, "barrier"},
{Opt_nobarrier, "nobarrier"}, {Opt_nobarrier, "nobarrier"},
{Opt_inode64, "inode64"}, {Opt_inode64, "inode64"},
{Opt_inode32, "inode32"},
{Opt_err, NULL} {Opt_err, NULL}
}; };
...@@ -1141,6 +1146,9 @@ xfs_fs_remount( ...@@ -1141,6 +1146,9 @@ xfs_fs_remount(
case Opt_inode64: case Opt_inode64:
mp->m_maxagi = xfs_set_inode64(mp); mp->m_maxagi = xfs_set_inode64(mp);
break; break;
case Opt_inode32:
mp->m_maxagi = xfs_set_inode32(mp);
break;
default: default:
/* /*
* Logically we would return an error here to prevent * Logically we would return an error here to prevent
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment