diff --git a/fs/gfs2/dir.c b/fs/gfs2/dir.c index c5a34f09e228dadc5d9d4b0e316280f0bc98ccb8..6371192961e2260cbbb9976ad1c636d89b92cee6 100644 --- a/fs/gfs2/dir.c +++ b/fs/gfs2/dir.c @@ -1896,7 +1896,8 @@ static int leaf_dealloc(struct gfs2_inode *dip, u32 index, u32 len, ht = kzalloc(size, GFP_NOFS | __GFP_NOWARN); if (ht == NULL) - ht = vzalloc(size); + ht = __vmalloc(size, GFP_NOFS | __GFP_NOWARN | __GFP_ZERO, + PAGE_KERNEL); if (!ht) return -ENOMEM;