mirror_zfs/include/os/linux/kernel/linux
Gian-Carlo DeFazio 80d64bb85f
change how d_alias is replaced by du.d_alias
d_alias may need to be converted to du.d_alias
depending on the kernel version.
d_alias is currently in only one place in the code which
changes
"hlist_for_each_entry(dentry, &inode->i_dentry, d_alias)"
to
"hlist_for_each_entry(dentry, &inode->i_dentry, d_u.d_alias)"
as neccesary.

This effectively results in a double macro expansion
for code that uses the zfs headers but already has its
own macro for just d_alias (lustre in this case).

Remove the conditional code for hlist_for_each_entry
and have a macro for "d_alias -> du.d_alias" instead.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Gian-Carlo DeFazio <defazio1@llnl.gov>
Closes #14377
2023-01-12 10:14:04 -08:00
..
blkdev_compat.h linux 6.2 compat: bio->bi_rw was renamed bio->bi_opf 2023-01-06 14:43:22 -08:00
compiler_compat.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
dcache_compat.h change how d_alias is replaced by du.d_alias 2023-01-12 10:14:04 -08:00
kmap_compat.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
mod_compat.h Cleanup: 64-bit kernel module parameters should use fixed width types 2022-10-13 10:03:29 -07:00
page_compat.h Linux 5.9 compat: NR_SLAB_RECLAIMABLE 2020-08-29 20:57:45 -07:00
percpu_compat.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
simd_aarch64.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
simd_powerpc.h Linux PPC: Fix build failures on kernels built without CONFIG_SPE 2022-12-09 10:51:23 -08:00
simd_x86.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
simd.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
utsname_compat.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
vfs_compat.h zfs_rename: support RENAME_* flags 2022-10-28 09:49:20 -07:00
xattr_compat.h Support idmapped mount in user namespace 2022-11-08 10:28:56 -08:00