linux-stable/fs/overlayfs
Amir Goldstein 8ea2876577 ovl: do not reconnect upper index records in ovl_indexdir_cleanup()
ovl_indexdir_cleanup() is called on mount of overayfs with nfs_export
feature to cleanup stale index records for lower and upper files that have
been deleted while overlayfs was offline.

This has the side effect (good or bad) of pre populating inode cache with
all the copied up upper inodes, while verifying the index entries.

For copied up directories, the upper file handles are decoded to conncted
upper dentries.  This has the even bigger side effect of reading the
content of all the parent upper directories which may take significantly
more time and IO than just reading the upper inodes.

Do not request connceted upper dentries for verifying upper directory index
entries, because we have no use for the connected dentry.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
2022-12-08 10:49:46 +01:00
..
copy_up.c tmpfile API change 2022-10-10 19:45:17 -07:00
dir.c ovl: Use ovl mounter's fsuid and fsgid in ovl_link() 2022-12-08 10:49:46 +01:00
export.c ovl: do not reconnect upper index records in ovl_indexdir_cleanup() 2022-12-08 10:49:46 +01:00
file.c ovl: fix comment typos 2022-12-08 10:49:46 +01:00
inode.c whack-a-mole: constifying struct path * 2022-10-06 17:31:02 -07:00
Kconfig docs: fix broken references to text files 2020-04-20 15:35:59 -06:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
namei.c ovl: do not reconnect upper index records in ovl_indexdir_cleanup() 2022-12-08 10:49:46 +01:00
overlayfs.h ovl: do not reconnect upper index records in ovl_indexdir_cleanup() 2022-12-08 10:49:46 +01:00
ovl_entry.h ovl: support idmapped layers 2022-04-28 16:31:12 +02:00
readdir.c whack-a-mole: constifying struct path * 2022-10-06 17:31:02 -07:00
super.c ovl: fix use inode directly in rcu-walk mode 2022-11-28 11:33:05 +01:00
util.c ovl: port to vfs{g,u}id_t and associated helpers 2022-12-08 10:49:46 +01:00