]> git.baikalelectronics.ru Git - kernel.git/commit
ovl: handle ENOENT on index lookup
authorAmir Goldstein <amir73il@gmail.com>
Fri, 20 Oct 2017 14:19:06 +0000 (17:19 +0300)
committerMiklos Szeredi <mszeredi@redhat.com>
Tue, 24 Oct 2017 14:06:17 +0000 (16:06 +0200)
commit76904f4675cffa0239c48bba0af13d315bc4df46
tree188addb3f80fe0cb3e1973b5e6aba085b7f408dc
parent3702aa6ed567c342ace89dc96d5c0f156a53e1d4
ovl: handle ENOENT on index lookup

Treat ENOENT from index entry lookup the same way as treating a returned
negative dentry. Apparently, either could be returned if file is not
found, depending on the underlying file system.

Fixes: 80e40ad216c1 ("ovl: lookup index entry for copy up origin")
Cc: <stable@vger.kernel.org> # v4.13
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
fs/overlayfs/namei.c