aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/gfs2/inode.c')
-rw-r--r--fs/gfs2/inode.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/gfs2/inode.c b/fs/gfs2/inode.c
index de2668f5c974..3ab192bac7d3 100644
--- a/fs/gfs2/inode.c
+++ b/fs/gfs2/inode.c
@@ -389,6 +389,7 @@ static int alloc_dinode(struct gfs2_inode *dip, u64 *no_addr, u64 *generation)
389{ 389{
390 struct gfs2_sbd *sdp = GFS2_SB(&dip->i_inode); 390 struct gfs2_sbd *sdp = GFS2_SB(&dip->i_inode);
391 int error; 391 int error;
392 int dblocks = 0;
392 393
393 if (gfs2_alloc_get(dip) == NULL) 394 if (gfs2_alloc_get(dip) == NULL)
394 return -ENOMEM; 395 return -ENOMEM;
@@ -402,7 +403,7 @@ static int alloc_dinode(struct gfs2_inode *dip, u64 *no_addr, u64 *generation)
402 if (error) 403 if (error)
403 goto out_ipreserv; 404 goto out_ipreserv;
404 405
405 error = gfs2_alloc_block(dip, no_addr, NULL, 1, generation); 406 error = gfs2_alloc_blocks(dip, no_addr, &dblocks, 1, generation);
406 407
407 gfs2_trans_end(sdp); 408 gfs2_trans_end(sdp);
408 409