GFS2: combine gfs2_alloc_block and gfs2_alloc_di
authorBob Peterson <rpeterso@redhat.com>
Mon, 14 Nov 2011 16:17:08 +0000 (11:17 -0500)
committerSteven Whitehouse <swhiteho@redhat.com>
Tue, 15 Nov 2011 15:25:03 +0000 (15:25 +0000)
GFS2 functions gfs2_alloc_block and gfs2_alloc_di do basically
the same things, with a few exceptions. This patch combines
the two functions into a slightly more generic gfs2_alloc_block.
Having one centralized block allocation function will reduce
code redundancy and make it easier to implement multi-block
reservations to reduce file fragmentation in the future.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>

No differences found