ocfs2: Cache extent records
authorMark Fasheh <mark.fasheh@oracle.com>
Tue, 24 Apr 2007 01:53:12 +0000 (18:53 -0700)
committerMark Fasheh <mark.fasheh@oracle.com>
Thu, 26 Apr 2007 22:10:40 +0000 (15:10 -0700)
commit83418978827324918a8cd25ce5227312de1d4468
treef7baefb1fc8721d6d8d1f1f937bc55535b13e18f
parent7cdfc3a1c3971c9125c317cb8c2525745851798e
ocfs2: Cache extent records

The extent map code was ripped out earlier because of an inability to deal
with holes. This patch adds back a simpler caching scheme requiring far less
code.

Our old extent map caching was designed back when meta data block caching in
Ocfs2 didn't work very well, resulting in many disk reads. These days our
metadata caching is much better, resulting in no un-necessary disk reads. As
a result, extent caching doesn't have to be as fancy, nor does it have to
cache as many extents. Keeping the last 3 extents seen should be sufficient
to give us a small performance boost on some streaming workloads.

Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
fs/ocfs2/alloc.c
fs/ocfs2/dlmglue.c
fs/ocfs2/extent_map.c
fs/ocfs2/extent_map.h
fs/ocfs2/inode.c
fs/ocfs2/inode.h
fs/ocfs2/super.c