diff options
author | Eric Sandeen <sandeen@sandeen.net> | 2007-08-16 02:24:55 -0400 |
---|---|---|
committer | Tim Shimmin <tes@chook.melbourne.sgi.com> | 2007-10-15 02:39:35 -0400 |
commit | 425f9ddd534573f58df8e7b633a534fcfc16d44d (patch) | |
tree | e1c7384935e3340e7db53b624c05ae0d1e2f5b20 /fs/xfs/xfs_ialloc.h | |
parent | 1cb51258758d725028e9ee9688d462de125a053d (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_ialloc.h')
-rw-r--r-- | fs/xfs/xfs_ialloc.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/fs/xfs/xfs_ialloc.h b/fs/xfs/xfs_ialloc.h index 97f4040931ca..4e30ec1d13bc 100644 --- a/fs/xfs/xfs_ialloc.h +++ b/fs/xfs/xfs_ialloc.h | |||
@@ -30,14 +30,9 @@ struct xfs_trans; | |||
30 | #define XFS_IALLOC_BLOCKS(mp) (mp)->m_ialloc_blks | 30 | #define XFS_IALLOC_BLOCKS(mp) (mp)->m_ialloc_blks |
31 | 31 | ||
32 | /* | 32 | /* |
33 | * For small block file systems, move inodes in clusters of this size. | 33 | * Move inodes in clusters of this size. |
34 | * When we don't have a lot of memory, however, we go a bit smaller | ||
35 | * to reduce the number of AGI and ialloc btree blocks we need to keep | ||
36 | * around for xfs_dilocate(). We choose which one to use in | ||
37 | * xfs_mount_int(). | ||
38 | */ | 34 | */ |
39 | #define XFS_INODE_BIG_CLUSTER_SIZE 8192 | 35 | #define XFS_INODE_BIG_CLUSTER_SIZE 8192 |
40 | #define XFS_INODE_SMALL_CLUSTER_SIZE 4096 | ||
41 | #define XFS_INODE_CLUSTER_SIZE(mp) (mp)->m_inode_cluster_size | 36 | #define XFS_INODE_CLUSTER_SIZE(mp) (mp)->m_inode_cluster_size |
42 | 37 | ||
43 | /* | 38 | /* |