]> git.baikalelectronics.ru Git - kernel.git/commit
ovl: hash non-indexed dir by upper inode for NFS export
authorAmir Goldstein <amir73il@gmail.com>
Mon, 10 Jul 2017 12:55:55 +0000 (15:55 +0300)
committerMiklos Szeredi <mszeredi@redhat.com>
Wed, 24 Jan 2018 10:26:04 +0000 (11:26 +0100)
commit3cf410d6609f1c800d7ce2a5ccae753c5e409e75
treef1f6f0c2c1e3fade5181bc246ac10e91b7e4ba1c
parent88e8d86c9574d7b85731b836d30348988ae93ac4
ovl: hash non-indexed dir by upper inode for NFS export

Non-indexed upper dirs are encoded as upper file handles. When NFS export
is enabled, hash non-indexed directory inodes by upper inode, so we can
find them in inode cache using the decoded upper inode.

When NFS export is disabled, directories are not indexed on copy up, so
hash non-indexed directory inodes by origin inode, the same hash key
that is used before copy up.

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