]> 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)
commit53b5be51a94cfe60f47e389b948d63c3f496f265
treec8a36248d274b2f9096d9fff4127506966c544de
parent11e121e18c3df66729bc6cf3165eed1c6cdaafdd
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