Whamcloud - gitweb
LU-16364 llite: Move d_u.d_alias compat define 08/49308/2
authorShaun Tancheff <shaun.tancheff@hpe.com>
Fri, 2 Dec 2022 19:40:38 +0000 (13:40 -0600)
committerOleg Drokin <green@whamcloud.com>
Tue, 13 Dec 2022 16:10:50 +0000 (16:10 +0000)
Breaks zpl_d_drop_aliases (seen in 2.1.7)

The only user of d_alias is llite so move the
define to a header private to llite.

Test-Parameters: trivial
HPE-bug-id: LUS-11394
Signed-off-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Change-Id: I44f511073f4dd17fd6dba1588e88d29cdfd3f6cb
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/49308
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Petros Koutoupis <petros.koutoupis@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/lustre_compat.h
lustre/llite/llite_internal.h

index aef5943..6857d81 100644 (file)
 #define d_child                        d_u.d_child
 #endif
 
-#ifdef HAVE_DENTRY_D_U_D_ALIAS
-#define d_alias                        d_u.d_alias
-#endif
-
 #ifndef HAVE_D_IN_LOOKUP
 static inline int d_in_lookup(struct dentry *dentry)
 {
index da36467..6a1161f 100644 (file)
 #define LOOKUP_CONTINUE LOOKUP_PARENT
 #endif
 
+#ifdef HAVE_DENTRY_D_U_D_ALIAS
+#define d_alias                        d_u.d_alias
+#endif
+
 /** Only used on client-side for indicating the tail of dir hash/offset. */
 #define LL_DIR_END_OFF          0x7fffffffffffffffULL
 #define LL_DIR_END_OFF_32BIT    0x7fffffffUL