[XFS] choose single default logbuf count & size
authorEric Sandeen <sandeen@sandeen.net>
Thu, 16 Aug 2007 06:24:43 +0000 (16:24 +1000)
committerTim Shimmin <tes@chook.melbourne.sgi.com>
Mon, 15 Oct 2007 06:38:23 +0000 (16:38 +1000)
commit1cb51258758d725028e9ee9688d462de125a053d
tree2306dcf367cd7e105b878ddf03bd8cb9e164be7d
parent40906630f18fdf5ac27f5928c20f76eeac8fb0f0
[XFS] choose single default logbuf count & size

Remove sizing of logbuf size & count based on physical memory; this was
never a very good gauge as it's looking at global memory, but deciding on
sizing per-filesystem; no account is made of the total number of
filesystems, for example.

For now just take the largest "default" case, as was set for machines with
>400MB - 8 x 32k buffers. This can always be tuned higher or lower with
mount options if necessary. Removes one more user of xfs_physmem.

SGI-PV: 968563
SGI-Modid: xfs-linux-melb:xfs-kern:29323a

Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Signed-off-by: David Chinner <dgc@sgi.com>
Signed-off-by: Tim Shimmin <tes@sgi.com>
fs/xfs/xfs_log.c
fs/xfs/xfs_log_priv.h