aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_mount.c
diff options
context:
space:
mode:
authorEric Sandeen <sandeen@sandeen.net>2007-08-16 02:24:55 -0400
committerTim Shimmin <tes@chook.melbourne.sgi.com>2007-10-15 02:39:35 -0400
commit425f9ddd534573f58df8e7b633a534fcfc16d44d (patch)
treee1c7384935e3340e7db53b624c05ae0d1e2f5b20 /fs/xfs/xfs_mount.c
parent1cb51258758d725028e9ee9688d462de125a053d (diff)
[XFS] Pick a single default inode cluster size.
Remove scaling of inode "clusters" based on machine memory; small cluster cut-point was an unrealistic 32MB and was probably never tested. Removes another user of xfs_physmem. SGI-PV: 968563 SGI-Modid: xfs-linux-melb:xfs-kern:29324a Signed-off-by: Eric Sandeen <sandeen@sandeen.net> Signed-off-by: David Chinner <dgc@sgi.com> Signed-off-by: Tim Shimmin <tes@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_mount.c')
-rw-r--r--fs/xfs/xfs_mount.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/fs/xfs/xfs_mount.c b/fs/xfs/xfs_mount.c
index 4458e706b1c6..cfe4de5def89 100644
--- a/fs/xfs/xfs_mount.c
+++ b/fs/xfs/xfs_mount.c
@@ -885,15 +885,12 @@ xfs_mountfs(
885 mp->m_writeio_blocks = 1 << (mp->m_writeio_log - sbp->sb_blocklog); 885 mp->m_writeio_blocks = 1 << (mp->m_writeio_log - sbp->sb_blocklog);
886 886
887 /* 887 /*
888 * Set the inode cluster size based on the physical memory 888 * Set the inode cluster size.
889 * size. This may still be overridden by the file system 889 * This may still be overridden by the file system
890 * block size if it is larger than the chosen cluster size. 890 * block size if it is larger than the chosen cluster size.
891 */ 891 */
892 if (xfs_physmem <= btoc(32 * 1024 * 1024)) { /* <= 32 MB */ 892 mp->m_inode_cluster_size = XFS_INODE_BIG_CLUSTER_SIZE;
893 mp->m_inode_cluster_size = XFS_INODE_SMALL_CLUSTER_SIZE; 893
894 } else {
895 mp->m_inode_cluster_size = XFS_INODE_BIG_CLUSTER_SIZE;
896 }
897 /* 894 /*
898 * Set whether we're using inode alignment. 895 * Set whether we're using inode alignment.
899 */ 896 */