aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/xfs/xfs_super.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/xfs/xfs_super.c b/fs/xfs/xfs_super.c
index c416a01fcb14..996257d36fd1 100644
--- a/fs/xfs/xfs_super.c
+++ b/fs/xfs/xfs_super.c
@@ -88,6 +88,8 @@ mempool_t *xfs_ioend_pool;
88 * unwritten extent conversion */ 88 * unwritten extent conversion */
89#define MNTOPT_NOBARRIER "nobarrier" /* .. disable */ 89#define MNTOPT_NOBARRIER "nobarrier" /* .. disable */
90#define MNTOPT_64BITINODE "inode64" /* inodes can be allocated anywhere */ 90#define MNTOPT_64BITINODE "inode64" /* inodes can be allocated anywhere */
91#define MNTOPT_32BITINODE "inode32" /* inode allocation limited to
92 * XFS_MAXINUMBER_32 */
91#define MNTOPT_IKEEP "ikeep" /* do not free empty inode clusters */ 93#define MNTOPT_IKEEP "ikeep" /* do not free empty inode clusters */
92#define MNTOPT_NOIKEEP "noikeep" /* free empty inode clusters */ 94#define MNTOPT_NOIKEEP "noikeep" /* free empty inode clusters */
93#define MNTOPT_LARGEIO "largeio" /* report large I/O sizes in stat() */ 95#define MNTOPT_LARGEIO "largeio" /* report large I/O sizes in stat() */
@@ -198,7 +200,9 @@ xfs_parseargs(
198 */ 200 */
199 mp->m_flags |= XFS_MOUNT_BARRIER; 201 mp->m_flags |= XFS_MOUNT_BARRIER;
200 mp->m_flags |= XFS_MOUNT_COMPAT_IOSIZE; 202 mp->m_flags |= XFS_MOUNT_COMPAT_IOSIZE;
203#if !XFS_BIG_INUMS
201 mp->m_flags |= XFS_MOUNT_SMALL_INUMS; 204 mp->m_flags |= XFS_MOUNT_SMALL_INUMS;
205#endif
202 206
203 /* 207 /*
204 * These can be overridden by the mount option parsing. 208 * These can be overridden by the mount option parsing.
@@ -295,6 +299,8 @@ xfs_parseargs(
295 return EINVAL; 299 return EINVAL;
296 } 300 }
297 dswidth = simple_strtoul(value, &eov, 10); 301 dswidth = simple_strtoul(value, &eov, 10);
302 } else if (!strcmp(this_char, MNTOPT_32BITINODE)) {
303 mp->m_flags |= XFS_MOUNT_SMALL_INUMS;
298 } else if (!strcmp(this_char, MNTOPT_64BITINODE)) { 304 } else if (!strcmp(this_char, MNTOPT_64BITINODE)) {
299 mp->m_flags &= ~XFS_MOUNT_SMALL_INUMS; 305 mp->m_flags &= ~XFS_MOUNT_SMALL_INUMS;
300#if !XFS_BIG_INUMS 306#if !XFS_BIG_INUMS
@@ -493,6 +499,7 @@ xfs_showargs(
493 { XFS_MOUNT_FILESTREAMS, "," MNTOPT_FILESTREAM }, 499 { XFS_MOUNT_FILESTREAMS, "," MNTOPT_FILESTREAM },
494 { XFS_MOUNT_GRPID, "," MNTOPT_GRPID }, 500 { XFS_MOUNT_GRPID, "," MNTOPT_GRPID },
495 { XFS_MOUNT_DISCARD, "," MNTOPT_DISCARD }, 501 { XFS_MOUNT_DISCARD, "," MNTOPT_DISCARD },
502 { XFS_MOUNT_SMALL_INUMS, "," MNTOPT_32BITINODE },
496 { 0, NULL } 503 { 0, NULL }
497 }; 504 };
498 static struct proc_xfs_info xfs_info_unset[] = { 505 static struct proc_xfs_info xfs_info_unset[] = {