xfs: improve metadata I/O merging in the elevator
authorDave Chinner <dgc@sgi.com>
Tue, 24 Nov 2009 18:03:15 +0000 (18:03 +0000)
committerAlex Elder <aelder@sgi.com>
Wed, 16 Dec 2009 19:41:19 +0000 (13:41 -0600)
commit2ee1abad73a12df5521cd3f017f081f1f684a361
treee44a88b0ae7f01d339426d7a6d18bde017bb9cf1
parentb44b1126279b60597f96bbe77507b1650f88a969
xfs: improve metadata I/O merging in the elevator

Change all async metadata buffers to use [READ|WRITE]_META I/O types
so that the I/O doesn't get issued immediately. This allows merging of
adjacent metadata requests but still prioritises them over bulk data.
This shows a 10-15% improvement in sequential create speed of small
files.

Don't include the log buffers in this classification - leave them as
sync types so they are issued immediately.

Signed-off-by: Dave Chinner <dgc@sgi.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Alex Elder <aelder@sgi.com>
fs/xfs/linux-2.6/xfs_buf.c
fs/xfs/linux-2.6/xfs_buf.h
fs/xfs/xfs_log.c
include/linux/fs.h