]> 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)
commit7da133e5f9fec50f092e89e79a544df855a30246
tree188addb3f80fe0cb3e1973b5e6aba085b7f408dc
parent8c4579f58a25af6fec01cd9ed2c6895089c1e94b
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: 329902f61516 ("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