From: Arshad Hussain Date: Sun, 25 Feb 2024 01:13:22 +0000 (+0530) Subject: LU-17580 llite: Remove all referance of LOOKUP_CONTINUE X-Git-Tag: 2.15.64~226 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=refs%2Fchanges%2F69%2F54169%2F7;p=fs%2Flustre-release.git LU-17580 llite: Remove all referance of LOOKUP_CONTINUE 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 Change-Id: I05eac0ec1321d230c7a215f95888d4040b7c670a Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/54169 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Timothy Day Reviewed-by: Oleg Drokin Reviewed-by: Neil Brown Reviewed-by: James Simmons --- diff --git a/contrib/scripts/spelling.txt b/contrib/scripts/spelling.txt index c490e84..cf3afd9 100644 --- a/contrib/scripts/spelling.txt +++ b/contrib/scripts/spelling.txt @@ -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 diff --git a/lustre/llite/dcache.c b/lustre/llite/dcache.c index 3d285f7..cbefe2f 100644 --- a/lustre/llite/dcache.c +++ b/lustre/llite/dcache.c @@ -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); diff --git a/lustre/llite/llite_internal.h b/lustre/llite/llite_internal.h index f1acd6f..dd80d27 100644 --- a/lustre/llite/llite_internal.h +++ b/lustre/llite/llite_internal.h @@ -60,13 +60,6 @@ #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