Bob Peterson 6e87ed0fc9 GFS2: move toward a generic multi-block allocator
This patch is a revision of the one I previously posted.
I tried to integrate all the suggestions Steve gave.
The purpose of the patch is to change function gfs2_alloc_block
(allocate either a dinode block or an extent of data blocks)
to a more generic gfs2_alloc_blocks function that can
allocate both a dinode _and_ an extent of data blocks in the
same call. This will ultimately help us create a multi-block
reservation scheme to reduce file fragmentation.

This patch moves more toward a generic multi-block allocator that
takes a pointer to the number of data blocks to allocate, plus whether
or not to allocate a dinode. In theory, it could be called to allocate
(1) a single dinode block, (2) a group of one or more data blocks, or
(3) a dinode plus several data blocks.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
2011-11-21 10:04:09 +00:00
..
2011-10-21 12:39:26 +01:00
2011-07-25 14:30:23 -04:00
2010-09-20 11:18:16 +01:00
2011-11-21 10:01:25 +00:00
2008-06-27 09:39:44 +01:00
2011-11-02 12:53:43 +01:00
2011-10-21 12:39:41 +01:00
2011-11-18 09:49:51 +00:00
2011-10-21 12:39:26 +01:00
2010-09-20 11:18:46 +01:00
2011-03-09 10:58:04 +00:00
2011-11-08 09:51:53 +00:00
2011-10-21 12:39:51 +01:00
2008-03-31 10:39:54 +01:00
2011-07-26 16:49:47 -07:00
2011-05-10 13:12:49 +01:00
2011-11-08 09:51:53 +00:00
2011-04-20 09:00:24 +01:00
2011-11-08 09:51:53 +00:00
2011-11-08 09:51:53 +00:00
2010-09-29 14:20:52 +01:00
2011-10-21 12:39:41 +01:00
2010-05-21 18:31:20 -04:00
2011-07-12 09:15:46 +01:00
2009-01-05 07:39:13 +00:00
2010-03-01 14:07:37 +00:00
2009-12-16 12:16:49 -05:00