Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 70821
b: refs/heads/master
c: 425f9dd
h: refs/heads/master
i:
  70819: e49dbd9
v: v3
  • Loading branch information
Eric Sandeen authored and Tim Shimmin committed Oct 15, 2007
1 parent 55d50fd commit 5b9ecdc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1cb51258758d725028e9ee9688d462de125a053d
refs/heads/master: 425f9ddd534573f58df8e7b633a534fcfc16d44d
7 changes: 1 addition & 6 deletions trunk/fs/xfs/xfs_ialloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,9 @@ struct xfs_trans;
#define XFS_IALLOC_BLOCKS(mp) (mp)->m_ialloc_blks

/*
* For small block file systems, move inodes in clusters of this size.
* When we don't have a lot of memory, however, we go a bit smaller
* to reduce the number of AGI and ialloc btree blocks we need to keep
* around for xfs_dilocate(). We choose which one to use in
* xfs_mount_int().
* Move inodes in clusters of this size.
*/
#define XFS_INODE_BIG_CLUSTER_SIZE 8192
#define XFS_INODE_SMALL_CLUSTER_SIZE 4096
#define XFS_INODE_CLUSTER_SIZE(mp) (mp)->m_inode_cluster_size

/*
Expand Down
11 changes: 4 additions & 7 deletions trunk/fs/xfs/xfs_mount.c
Original file line number Diff line number Diff line change
Expand Up @@ -885,15 +885,12 @@ xfs_mountfs(
mp->m_writeio_blocks = 1 << (mp->m_writeio_log - sbp->sb_blocklog);

/*
* Set the inode cluster size based on the physical memory
* size. This may still be overridden by the file system
* Set the inode cluster size.
* This may still be overridden by the file system
* block size if it is larger than the chosen cluster size.
*/
if (xfs_physmem <= btoc(32 * 1024 * 1024)) { /* <= 32 MB */
mp->m_inode_cluster_size = XFS_INODE_SMALL_CLUSTER_SIZE;
} else {
mp->m_inode_cluster_size = XFS_INODE_BIG_CLUSTER_SIZE;
}
mp->m_inode_cluster_size = XFS_INODE_BIG_CLUSTER_SIZE;

/*
* Set whether we're using inode alignment.
*/
Expand Down

0 comments on commit 5b9ecdc

Please sign in to comment.