ocfs2: use allocation reservations for directory data
authorMark Fasheh <mfasheh@suse.com>
Mon, 7 Dec 2009 21:16:07 +0000 (13:16 -0800)
committerJoel Becker <joel.becker@oracle.com>
Thu, 6 May 2010 01:17:30 +0000 (18:17 -0700)
Use the reservations system for unindexed dir tree allocations. We don't
bother with the indexed tree as reads from it are mostly random anyway.
Directory reservations are marked seperately, to allow the reservations code
a chance to optimize their window sizes. This patch allocates only 8 bits
for directory windows as they generally are not expected to grow as quickly
as file data. Future improvements to dir window sizing can trivially be
made.

Signed-off-by: Mark Fasheh <mfasheh@suse.com>
fs/ocfs2/dir.c
fs/ocfs2/inode.c
fs/ocfs2/reservations.c
fs/ocfs2/reservations.h
fs/ocfs2/suballoc.c

diff --cc fs/ocfs2/dir.c
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge