ovl: update ctx->pos on impure dir iteration
authorAmir Goldstein <amir73il@gmail.com>
Wed, 29 Nov 2017 05:35:21 +0000 (07:35 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Mon, 11 Dec 2017 10:28:11 +0000 (11:28 +0100)
commitb02a16e6413a2f782e542ef60bad9ff6bf212f8a
tree515434bdb7d07018dff9f0d37d6909276da9ffa9
parent08d8f8a5b094b66b29936e8751b4a818b8db1207
ovl: update ctx->pos on impure dir iteration

This fixes a regression with readdir of impure dir in overlayfs
that is shared to VM via 9p fs.

Reported-by: Miguel Bernal Marin <miguel.bernal.marin@linux.intel.com>
Fixes: 4edb83bb1041 ("ovl: constant d_ino for non-merge dirs")
Cc: <stable@vger.kernel.org> #4.14
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Tested-by: Miguel Bernal Marin <miguel.bernal.marin@linux.intel.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/overlayfs/readdir.c