ovl: lookup non-dir copy-up-origin by file handle
authorAmir Goldstein <amir73il@gmail.com>
Sun, 30 Apr 2017 11:46:31 +0000 (14:46 +0300)
committerMiklos Szeredi <mszeredi@redhat.com>
Fri, 5 May 2017 09:38:58 +0000 (11:38 +0200)
commita9d019573e881472aa62f093fa599ad68cd0fc1e
tree8778da1cdb000fe74a5c8f03584ff5f2d40008e3
parentc22205d0584bc65cfc9a65db0e15a9b69f5cdf64
ovl: lookup non-dir copy-up-origin by file handle

If overlay.origin xattr is found on a non-dir upper inode try to get lower
dentry by calling exportfs_decode_fh().

On failure to lookup by file handle to lower layer, do not lookup the copy
up origin by name, because the lower found by name could be another file in
case the upper file was renamed.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/overlayfs/namei.c