]> git.karo-electronics.de Git - linux-beck.git/commit
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)
commit3c5d785acfda7dffa63477951bb6864c6a49ed2e
treeaa387498361ad753777363322a35b8feb80e5f85
parentc688b8b334d20acbc79b0383af2816ecf7365741
GFS2: combine gfs2_alloc_block and gfs2_alloc_di

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>
fs/gfs2/bmap.c
fs/gfs2/dir.c
fs/gfs2/inode.c
fs/gfs2/rgrp.c
fs/gfs2/rgrp.h
fs/gfs2/xattr.c