]> git.baikalelectronics.ru Git - kernel.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)
committerMiklos Szeredi <mszeredi@redhat.com>
Fri, 27 May 2016 08:18:56 +0000 (10:18 +0200)
commit72915ae73c6f2b11317c1dd0362ea5e2effa557d
treec8a36248d274b2f9096d9fff4127506966c544de
parent4cfcd6668ad3f4ebeeefa13b0be3b4ea18890733
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