diff options
author | Bob Peterson <rpeterso@redhat.com> | 2011-11-14 11:17:08 -0500 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2011-11-15 15:25:03 +0000 |
commit | 3c5d785acfda7dffa63477951bb6864c6a49ed2e (patch) | |
tree | aa387498361ad753777363322a35b8feb80e5f85 /fs/gfs2/dir.c | |
parent | c688b8b334d20acbc79b0383af2816ecf7365741 (diff) | |
download | linux-3c5d785acfda7dffa63477951bb6864c6a49ed2e.tar.gz linux-3c5d785acfda7dffa63477951bb6864c6a49ed2e.tar.bz2 linux-3c5d785acfda7dffa63477951bb6864c6a49ed2e.zip |
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>
Diffstat (limited to 'fs/gfs2/dir.c')
-rw-r--r-- | fs/gfs2/dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/dir.c b/fs/gfs2/dir.c index 946b6f88939e..ae75319b65e8 100644 --- a/fs/gfs2/dir.c +++ b/fs/gfs2/dir.c @@ -823,7 +823,7 @@ static struct gfs2_leaf *new_leaf(struct inode *inode, struct buffer_head **pbh, struct gfs2_dirent *dent; struct qstr name = { .name = "", .len = 0, .hash = 0 }; - error = gfs2_alloc_block(ip, &bn, &n); + error = gfs2_alloc_block(ip, &bn, &n, 0, NULL); if (error) return NULL; bh = gfs2_meta_new(ip->i_gl, bn); |