From 0520a938e11c34a5ffc422b9316b85e294b0fbb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Fabian=20Silva=20Delgado?= Date: Sun, 11 Sep 2016 12:58:59 -0300 Subject: Linux-libre 4.7.3-gnu --- fs/aufs/dinfo.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'fs/aufs/dinfo.c') diff --git a/fs/aufs/dinfo.c b/fs/aufs/dinfo.c index 361e86142..2626c0cca 100644 --- a/fs/aufs/dinfo.c +++ b/fs/aufs/dinfo.c @@ -129,7 +129,7 @@ void au_di_fin(struct dentry *dentry) au_di_free(dinfo); } -int au_di_realloc(struct au_dinfo *dinfo, int nbr) +int au_di_realloc(struct au_dinfo *dinfo, int nbr, int may_shrink) { int err, sz; struct au_hdentry *hdp; @@ -140,7 +140,8 @@ int au_di_realloc(struct au_dinfo *dinfo, int nbr) sz = sizeof(*hdp) * (dinfo->di_bbot + 1); if (!sz) sz = sizeof(*hdp); - hdp = au_kzrealloc(dinfo->di_hdentry, sz, sizeof(*hdp) * nbr, GFP_NOFS); + hdp = au_kzrealloc(dinfo->di_hdentry, sz, sizeof(*hdp) * nbr, GFP_NOFS, + may_shrink); if (hdp) { dinfo->di_hdentry = hdp; err = 0; -- cgit v1.2.3