From b907a8622e39eecfc4b243f3be3ad26559d1faee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Fabian=20Silva=20Delgado?= Date: Mon, 27 Jun 2016 21:01:09 -0300 Subject: Linux-libre 4.6.3-gnu --- fs/aufs/file.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'fs/aufs/file.c') diff --git a/fs/aufs/file.c b/fs/aufs/file.c index 27c5bf825..0113f3ef4 100644 --- a/fs/aufs/file.c +++ b/fs/aufs/file.c @@ -339,11 +339,11 @@ static int au_reopen_wh(struct file *file, aufs_bindex_t btgt, btop = dinfo->di_btop; dinfo->di_btop = btgt; - hdp = dinfo->di_hdentry; - h_dentry = hdp[0 + btgt].hd_dentry; - hdp[0 + btgt].hd_dentry = hi_wh; + hdp = au_hdentry(dinfo, btgt); + h_dentry = hdp->hd_dentry; + hdp->hd_dentry = hi_wh; err = au_reopen_nondir(file); - hdp[0 + btgt].hd_dentry = h_dentry; + hdp->hd_dentry = h_dentry; dinfo->di_btop = btop; return err; -- cgit v1.2.3