[XFS] Remove m_nreadaheads
m_nreadaheads in the mount struct is never used; remove it and the various macros assigned to it. Also remove a couple other unused macros in the same areas. Removes one user of xfs_physmem. SGI-PV: 968563 SGI-Modid: xfs-linux-melb:xfs-kern:29322a Signed-off-by: Eric Sandeen <sandeen@sandeen.net> Signed-off-by: David Chinner <dgc@sgi.com> Signed-off-by: Tim Shimmin <tes@sgi.com>
This commit is contained in:
committed by
Tim Shimmin
parent
cd8b0a97bd
commit
40906630f1
@@ -871,16 +871,6 @@ xfs_mountfs(
|
||||
writeio_log = mp->m_writeio_log;
|
||||
}
|
||||
|
||||
/*
|
||||
* Set the number of readahead buffers to use based on
|
||||
* physical memory size.
|
||||
*/
|
||||
if (xfs_physmem <= 4096) /* <= 16MB */
|
||||
mp->m_nreadaheads = XFS_RW_NREADAHEAD_16MB;
|
||||
else if (xfs_physmem <= 8192) /* <= 32MB */
|
||||
mp->m_nreadaheads = XFS_RW_NREADAHEAD_32MB;
|
||||
else
|
||||
mp->m_nreadaheads = XFS_RW_NREADAHEAD_K32;
|
||||
if (sbp->sb_blocklog > readio_log) {
|
||||
mp->m_readio_log = sbp->sb_blocklog;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user