GFS2: speed up delete/unlink performance for large files
authorBob Peterson <rpeterso@redhat.com>
Thu, 15 Sep 2011 13:59:56 +0000 (09:59 -0400)
committerSteven Whitehouse <swhiteho@redhat.com>
Fri, 21 Oct 2011 11:39:47 +0000 (12:39 +0100)
commitbd5437a7d4307a35f2c7cc19cad706ec0e5d61f0
tree3014bf500f6fc1aa90989d5ae956d1c45ff478d2
parentf75bbfb4dda68c86eb33cde7e2b5c1343c6d5812
GFS2: speed up delete/unlink performance for large files

This patch improves the performance of delete/unlink
operations in a GFS2 file system where the files are large
by adding a layer of metadata read-ahead for indirect blocks.
Mileage will vary, but on my system, deleting an 8.6G file
dropped from 22 seconds to about 4.5 seconds.

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