GFS2: Add readahead to sequential directory traversal
authorBob Peterson <rpeterso@redhat.com>
Thu, 27 Oct 2011 16:16:06 +0000 (12:16 -0400)
committerSteven Whitehouse <swhiteho@redhat.com>
Tue, 8 Nov 2011 09:52:12 +0000 (09:52 +0000)
commitdfe4d34b39b80faff52489f950a18523da7581bf
treebe478e2c4988612eef88a1669f774dd8f9f9b8af
parent20ed0535d35b74c9e4fa5777766d6e836fe3c90c
GFS2: Add readahead to sequential directory traversal

This patch adds read-ahead capability to GFS2's
directory hash table management.  It greatly improves
performance for some directory operations.  For example:
In one of my file systems that has 1000 directories, each
of which has 1000 files, time to execute a recursive
ls (time ls -fR /mnt/gfs2 > /dev/null) was reduced
from 2m2.814s on a stock kernel to 0m45.938s.

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