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)
committerMiklos Szeredi <mszeredi@redhat.com>
Fri, 27 May 2016 08:18:56 +0000 (10:18 +0200)
commit21765194cecf2e4514ad75244df459f188140a0f
treec8a36248d274b2f9096d9fff4127506966c544de
parent942fd803e6dfc64d32f2ae4f160b2986bc5897b8
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>
fs/overlayfs/super.c