linux/fs/overlayfs
Amir Goldstein f3a1568582 ovl: mark upper merge dir with type origin entries "impure"
An upper dir is marked "impure" to let ovl_iterate() know that this
directory may contain non pure upper entries whose d_ino may need to be
read from the origin inode.

We already mark a non-merge dir "impure" when moving a non-pure child
entry inside it, to let ovl_iterate() know not to iterate the non-merge
dir directly.

Mark also a merge dir "impure" when moving a non-pure child entry inside
it and when copying up a child entry inside it.

This can be used to optimize ovl_iterate() to perform a "pure merge" of
upper and lower directories, merging the content of the directories,
without having to read d_ino from origin inodes.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
2017-05-29 11:48:00 +02:00
..
copy_up.c ovl: mark upper merge dir with type origin entries "impure" 2017-05-29 11:48:00 +02:00
dir.c ovl: mark upper merge dir with type origin entries "impure" 2017-05-29 11:48:00 +02:00
inode.c ovl: merge getattr for dir and nondir 2017-05-05 11:38:58 +02:00
Kconfig ovl: select EXPORTFS 2017-05-15 10:53:07 +02:00
Makefile ovl: split super.c 2016-12-16 11:02:56 +01:00
namei.c ovl: mark upper merge dir with type origin entries "impure" 2017-05-29 11:48:00 +02:00
overlayfs.h ovl: mark upper merge dir with type origin entries "impure" 2017-05-29 11:48:00 +02:00
ovl_entry.h ovl: mark upper dir with type origin entries "impure" 2017-05-19 09:33:49 +02:00
readdir.c ovl: proper cleanup of workdir 2016-09-01 11:11:59 +02:00
super.c ovl: mark upper merge dir with type origin entries "impure" 2017-05-29 11:48:00 +02:00
util.c ovl: mark upper merge dir with type origin entries "impure" 2017-05-29 11:48:00 +02:00