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)
commit7937a56fdf0b064c2ffa33025210f725a4ebc822
tree188addb3f80fe0cb3e1973b5e6aba085b7f408dc
parent6eaf011144af10cad34c0d46f82e50d382c8e926
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: 359f392ca53e ("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