]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ovl: Do d_type check only if work dir creation was successful
authorVivek Goyal <vgoyal@redhat.com>
Fri, 20 May 2016 13:04:26 +0000 (09:04 -0400)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 18 May 2017 04:22:48 +0000 (21:22 -0700)
commit087ddd7bc0c66c00000c8b5e7292fea4f90246a6
treebce95d04a7b379e88ae0c3c650d895bf881451b4
parenta4b8b4de52f0cd6681d9a3000ae6f83fc0206baa
ovl: Do d_type check only if work dir creation was successful

d_type check requires successful creation of workdir as iterates
through work dir and expects work dir to be present in it. If that's
not the case, this check will always return d_type not supported even
if underlying filesystem might be supporting it.

So don't do this check if work dir creation failed in previous step.

Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
(cherry picked from commit 21765194cecf2e4514ad75244df459f188140a0f)
Signed-off-by: Divya Indi <divya.indi@oracle.com>
Orabug: 25802620
fs/overlayfs/super.c