]> git.ipfire.org Git - people/ms/linux.git/commit - fs/overlayfs/export.c
ovl: lookup connected ancestor of dir in inode cache
authorAmir Goldstein <amir73il@gmail.com>
Thu, 18 Jan 2018 14:39:13 +0000 (16:39 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Wed, 24 Jan 2018 10:26:05 +0000 (11:26 +0100)
commit4b91c30a5a19332e8dd10b601d05b72caf657730
tree0c4048fa36d803cdcbe7c44e659174400830ef4b
parent7a9dadef9684aaf738e7ce7e2a9284cc5e165ebc
ovl: lookup connected ancestor of dir in inode cache

Decoding a dir file handle requires walking backward up to layer root and
for lower dir also checking the index to see if any of the parents have
been copied up.

Lookup overlay ancestor dentry in inode/dentry cache by decoded real
parents to shortcut looking up all the way back to layer root.

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