OpenCloudOS-Kernel/fs/overlayfs
Amir Goldstein 4518dfcf76 ovl: fix lookup of indexed hardlinks with metacopy
We recently moved setting inode flag OVL_UPPERDATA to ovl_lookup().

When looking up an overlay dentry, upperdentry may be found by index
and not by name.  In that case, we fail to read the metacopy xattr
and falsly set the OVL_UPPERDATA on the overlay inode.

This caused a regression in xfstest overlay/033 when run with
OVERLAY_MOUNT_OPTIONS="-o metacopy=on".

Fixes: 28166ab3c8 ("ovl: initialize OVL_UPPERDATA in ovl_lookup()")
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
2020-07-16 07:24:47 +02: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
copy_up.c ovl: change ovl_copy_up_flags static 2020-07-16 00:06:16 +02:00
dir.c ovl: initialize OVL_UPPERDATA in ovl_lookup() 2020-06-02 22:20:25 +02:00
export.c ovl: relax WARN_ON() when decoding lower directory file handle 2020-07-16 00:09:17 +02:00
file.c ovl: fix unneeded call to ovl_change_flags() 2020-07-16 07:24:47 +02:00
inode.c overlayfs update for 5.8 2020-06-09 15:40:50 -07:00
namei.c ovl: fix lookup of indexed hardlinks with metacopy 2020-07-16 07:24:47 +02:00
overlayfs.h ovl: change ovl_copy_up_flags static 2020-07-16 00:06:16 +02:00
ovl_entry.h ovl: get rid of redundant members in struct ovl_fs 2020-06-04 10:48:19 +02:00
readdir.c ovl: add accessor for ofs->upper_mnt 2020-06-04 10:48:19 +02:00
super.c ovl: fix mount option checks for nfs_export with no upperdir 2020-07-16 00:11:15 +02:00
util.c ovl: add accessor for ofs->upper_mnt 2020-06-04 10:48:19 +02:00