GFS2: combine gfs2_alloc_block and gfs2_alloc_di
[firefly-linux-kernel-4.4.55.git] / fs / gfs2 / dir.c
index 946b6f88939e6130939831f3d7b483aee60b76d3..ae75319b65e8b36d10916b7f278b014a9c0795ee 100644 (file)
@@ -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);