[GFS2] gfs2_alloc_required performance
authorBob Peterson <rpeterso@redhat.com>
Fri, 11 Jan 2008 19:44:50 +0000 (13:44 -0600)
committerSteven Whitehouse <swhiteho@redhat.com>
Fri, 25 Jan 2008 08:19:03 +0000 (08:19 +0000)
This is a small I/O performance enhancement to gfs2.  (Actually, it is a rework of
an earlier version I got wrong).  The idea here is to check if the write extends
past the last block in the file.  If so, the function can save itself a lot of
time and trouble because it knows an allocate will be required.  Benchmarks like
iozone should see better performance.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/bmap.c

diff --cc fs/gfs2/bmap.c
Simple merge