Centos-kernel-stream-9/fs/overlayfs
Ming Lei 8704e87cf7 ovl: stop using d_alloc_anon()/d_instantiate_anon()
JIRA: https://issues.redhat.com/browse/RHEL-29564

commit 484d4fbfdafea581fdc2fd04df6781c3a59122c9
Author: Amir Goldstein <amir73il@gmail.com>
Date:   Sun Nov 12 08:55:57 2023 +0200

    ovl: stop using d_alloc_anon()/d_instantiate_anon()

    Commit f9c34674bc ("vfs: factor out helpers d_instantiate_anon() and
    d_alloc_anon()") was introduced so overlayfs could initialize a non-dir
    disconnected overlay dentry before overlay inode is attached to it.

    Since commit ("0af950f57fef ovl: move ovl_entry into ovl_inode"), all
    ovl_obtain_alias() can do is set DCACHE_OP_*REVALIDATE flags in ->d_flags
    and OVL_E_UPPER_ALIAS flag in ->d_fsdata.

    The DCACHE_OP_*REVALIDATE flags and OVL_E_UPPER_ALIAS flag are irrelevant
    for a disconnected non-dir dentry, so it is better to use d_obtain_alias()
    instead of open coding it.

    Suggested-by: Al Viro <viro@zeniv.linux.org.uk>
    Signed-off-by: Amir Goldstein <amir73il@gmail.com>
    Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Signed-off-by: Ming Lei <ming.lei@redhat.com>
2024-04-17 09:46:41 +08:00
..
Kconfig docs: fix broken references to text files 2020-04-20 15:35:59 -06:00
Makefile ovl: Move xattr support to new xattrs.c file 2024-01-11 14:29:03 +01:00
copy_up.c ovl: Handle verity during copy-up 2023-11-02 16:57:23 +01:00
dir.c ovl: Add an alternative type of whiteout 2024-01-11 14:35:01 +01:00
export.c ovl: stop using d_alloc_anon()/d_instantiate_anon() 2024-04-17 09:46:41 +08:00
file.c ovl: remove privs in ovl_fallocate() 2024-01-31 14:31:52 +01:00
inode.c ovl: Move xattr support to new xattrs.c file 2024-01-11 14:29:03 +01:00
namei.c ovl: mark xwhiteouts directory with overlay.opaque='x' 2024-02-16 10:30:59 +01:00
overlayfs.h ovl: mark xwhiteouts directory with overlay.opaque='x' 2024-02-16 10:30:59 +01:00
ovl_entry.h ovl: mark xwhiteouts directory with overlay.opaque='x' 2024-02-16 10:30:59 +01:00
readdir.c ovl: mark xwhiteouts directory with overlay.opaque='x' 2024-02-16 10:30:59 +01:00
super.c overlay: disable EVM 2024-03-20 16:13:21 +08:00
util.c ovl: mark xwhiteouts directory with overlay.opaque='x' 2024-02-16 10:30:59 +01:00
xattrs.c ovl: Support escaped overlay.* xattrs 2024-01-11 14:33:42 +01:00