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)
commite3b4a97dbe9741a3227c3ed857a0632532fcd386
tree31da8dd09ad6ef8959b287e36e98ead30472a284
parent4fe370afaae49c57619bb0bedb75de7e7c168308
ocfs2: use allocation reservations for directory data

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