linux-stable/fs/overlayfs
Amir Goldstein b5efccbe0a ovl: constant d_ino across copy up
When all layers are on the same fs, and iterating a directory which may
contain copy up entries, call vfs_getattr() on the overlay entries to make
sure that d_ino will be consistent with st_ino from stat(2).

There is an overhead of lookup per upper entry in readdir.

The overhead is minimal if the iterated entries are already in dcache.  It
is also quite useful for the common case of 'ls -l' that readdir() pre
populates the dcache with the listed entries, making the following stat()
calls faster.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
2017-07-27 21:54:06 +02:00
..
copy_up.c ovl: mark parent impure and restore timestamp on ovl_link_up() 2017-07-04 22:08:15 +02:00
dir.c ovl: mark parent impure on ovl_link() 2017-07-13 22:06:45 +02:00
inode.c ovl: check snprintf return 2017-07-27 21:54:05 +02:00
Kconfig ovl: introduce the inodes index dir feature 2017-07-04 22:03:17 +02:00
Makefile ovl: split super.c 2016-12-16 11:02:56 +01:00
namei.c ovl: check for bad and whiteout index on lookup 2017-07-20 11:08:21 +02:00
overlayfs.h ovl: fix xattr get and set with selinux 2017-07-20 11:08:21 +02:00
ovl_entry.h ovl: add flag for upper in ovl_entry 2017-07-04 22:03:18 +02:00
readdir.c ovl: constant d_ino across copy up 2017-07-27 21:54:06 +02:00
super.c ovl: fix xattr get and set with selinux 2017-07-20 11:08:21 +02:00
util.c ovl: fix xattr get and set with selinux 2017-07-20 11:08:21 +02:00