kernel_optimize_test/fs/overlayfs
Amir Goldstein 9678e63030 ovl: fix inconsistent d_ino for legacy merge dir
For a merge dir that was copied up before v4.12 or that was hand crafted
offline (e.g. mkdir {upper/lower}/dir), upper dir does not contain the
'trusted.overlay.origin' xattr.  In that case, stat(2) on the merge dir
returns the lower dir st_ino, but getdents(2) returns the upper dir d_ino.

After this change, on merge dir lookup, missing origin xattr on upper
dir will be fixed and 'impure' xattr will be fixed on parent of the legacy
merge dir.

Suggested-by: zhangyi (F) <yi.zhang@huawei.com>
Reviewed-by: zhangyi (F) <yi.zhang@huawei.com>
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
2018-01-24 10:18:19 +01:00
..
copy_up.c ovl: fix inconsistent d_ino for legacy merge dir 2018-01-24 10:18:19 +01:00
dir.c ovl: take lower dir inode mutex outside upper sb_writers lock 2018-01-19 17:43:23 +01:00
inode.c ovl: hash directory inodes for fsnotify 2018-01-19 13:54:33 +01:00
Kconfig ovl: don't follow redirects if redirect_dir=off 2017-12-11 11:28:10 +01:00
Makefile ovl: split super.c 2016-12-16 11:02:56 +01:00
namei.c ovl: fix inconsistent d_ino for legacy merge dir 2018-01-24 10:18:19 +01:00
overlayfs.h ovl: fix inconsistent d_ino for legacy merge dir 2018-01-24 10:18:19 +01:00
ovl_entry.h ovl: don't follow redirects if redirect_dir=off 2017-12-11 11:28:10 +01:00
readdir.c ovl: take mnt_want_write() for removing impure xattr 2018-01-19 17:43:24 +01:00
super.c ovl: take mnt_want_write() for work/index dir setup 2018-01-19 17:43:24 +01:00
util.c ovl: hash directory inodes for fsnotify 2018-01-19 13:54:33 +01:00