Whamcloud - gitweb
LU-17580 llite: Remove all referance of LOOKUP_CONTINUE 69/54169/7
authorArshad Hussain <arshad.hussain@aeoncomputing.com>
Sun, 25 Feb 2024 01:13:22 +0000 (06:43 +0530)
committerOleg Drokin <green@whamcloud.com>
Tue, 21 May 2024 18:23:43 +0000 (18:23 +0000)
Newer kernel (3.1 and beyond) LOOKUP_CONTINUE flag is
replaced/same as LOOKUP_PARENT flag. Can safely
remove any definations of LOOKUP_CONTINUE

Linux-commit: 49084c3bb2055c401f3493c13edae14d49128ca0
Signed-off-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Change-Id: I05eac0ec1321d230c7a215f95888d4040b7c670a
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/54169
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Timothy Day <timday@amazon.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Neil Brown <neilb@suse.de>
Reviewed-by: James Simmons <jsimmons@infradead.org>
contrib/scripts/spelling.txt
lustre/llite/dcache.c
lustre/llite/llite_internal.h

index c490e84..cf3afd9 100644 (file)
@@ -81,6 +81,7 @@ lnet_magicversion_t||struct lnet_magicversion
 lnet_ni_status_t||struct lnet_ni_status
 lnet_ping_info_t||struct lnet_ping_info
 lnet_process_id_packed_t||struct lnet_process_id_packed
+LOOKUP_CONTINUE||LOOKUP_PARENT
 HZ||cfs_time_seconds
 LPD64||%lld
 LPLD||%ld
index 3d285f7..cbefe2f 100644 (file)
@@ -325,7 +325,7 @@ static int ll_revalidate_dentry(struct dentry *dentry,
         * this dentry, then its lock has not been revoked and the
         * path component is valid.
         */
-       if (lookup_flags & (LOOKUP_CONTINUE | LOOKUP_PARENT)) {
+       if (lookup_flags & LOOKUP_PARENT) {
                if (dentry->d_inode && S_ISDIR(dentry->d_inode->i_mode)) {
                        parent = dget_parent(dentry);
                        ll_update_dir_depth_dmv(d_inode(parent), dentry);
index f1acd6f..dd80d27 100644 (file)
 #define VM_FAULT_RETRY 0
 #endif
 
-/* Kernel 3.1 kills LOOKUP_CONTINUE, LOOKUP_PARENT is equivalent to it.
- * seem kernel commit 49084c3bb2055c401f3493c13edae14d49128ca0
- */
-#ifndef LOOKUP_CONTINUE
-#define LOOKUP_CONTINUE LOOKUP_PARENT
-#endif
-
 #ifdef HAVE_DENTRY_D_U_D_ALIAS
 #define d_alias                        d_u.d_alias
 #endif