Convert filesystem to always use version 2 inodes.

Signed-off-by: Dave Chinner <dgc@sgi.com>
---
 fs/xfs/xfs_mount.c |   12 ++++++++++++
 1 file changed, 12 insertions(+)

Index: 2.6.x-xfs-new/fs/xfs/xfs_mount.c
===================================================================
--- 2.6.x-xfs-new.orig/fs/xfs/xfs_mount.c	2008-05-16 21:12:11.000000000 +1000
+++ 2.6.x-xfs-new/fs/xfs/xfs_mount.c	2008-05-16 23:07:41.898896341 +1000
@@ -938,6 +938,8 @@ xfs_mountfs(
 	int		error = 0;
 
 	xfs_mount_common(mp, sbp);
+	update_flags = 0LL;
+
 
 	/*
 	 * Check for a mismatched features2 values.  Older kernels
@@ -982,6 +984,16 @@ xfs_mountfs(
 	}
 
 	/*
+	 * Make sure we are using v2 inodes by default. Existing
+	 * filesystems will convert dynamically as inodes are
+	 * rewritten.
+	 */
+	if (!xfs_sb_version_hasnlink(sbp)) {
+		xfs_sb_version_addnlink(sbp);
+		update_flags |= XFS_SB_VERSIONNUM;
+	}
+
+	/*
 	 * Check if sb_agblocks is aligned at stripe boundary
 	 * If sb_agblocks is NOT aligned turn off m_dalign since
 	 * allocator alignment is within an ag, therefore ag has
