Commit 2ea0392983a82f7dc3055568ae0f2558724d119b

Authored by Carlos Maiolino
Committed by Ben Myers
1 parent 4056c1d08d

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>

Showing 1 changed file with 9 additions and 1 deletions Side-by-side Diff

... ... @@ -122,13 +122,18 @@
122 122 * in the future, too.
123 123 */
124 124 enum {
125   - Opt_barrier, Opt_nobarrier, Opt_inode64, Opt_err
  125 + Opt_barrier,
  126 + Opt_nobarrier,
  127 + Opt_inode64,
  128 + Opt_inode32,
  129 + Opt_err
126 130 };
127 131  
128 132 static const match_table_t tokens = {
129 133 {Opt_barrier, "barrier"},
130 134 {Opt_nobarrier, "nobarrier"},
131 135 {Opt_inode64, "inode64"},
  136 + {Opt_inode32, "inode32"},
132 137 {Opt_err, NULL}
133 138 };
134 139  
... ... @@ -1140,6 +1145,9 @@
1140 1145 break;
1141 1146 case Opt_inode64:
1142 1147 mp->m_maxagi = xfs_set_inode64(mp);
  1148 + break;
  1149 + case Opt_inode32:
  1150 + mp->m_maxagi = xfs_set_inode32(mp);
1143 1151 break;
1144 1152 default:
1145 1153 /*