From f172a59c99f7c6a3398b5f590f4cf1cecabdaee4 Mon Sep 17 00:00:00 2001 From: Mr NeilBrown Date: Thu, 27 Feb 2020 14:08:30 +1100 Subject: [PATCH] LU-9868 llite: remove lld_it field of ll_dentry_data This field is never set nor used. Let's remove it. Test-Parameters: trivial Signed-off-by: Mr NeilBrown Change-Id: If01ba4deec34a6528b3c36c45a378b9f3824ca2f Reviewed-on: https://review.whamcloud.com/37741 Reviewed-by: Wang Shilong Tested-by: jenkins Tested-by: Maloo Reviewed-by: James Simmons Reviewed-by: Oleg Drokin --- lustre/llite/dcache.c | 5 ----- lustre/llite/llite_internal.h | 1 - 2 files changed, 6 deletions(-) diff --git a/lustre/llite/dcache.c b/lustre/llite/dcache.c index 2ca1314..d33e680 100644 --- a/lustre/llite/dcache.c +++ b/lustre/llite/dcache.c @@ -60,11 +60,6 @@ static void ll_release(struct dentry *de) if (lld == NULL) /* NFS copies the de->d_op methods (bug 4655) */ RETURN_EXIT; - if (lld->lld_it) { - ll_intent_release(lld->lld_it); - OBD_FREE(lld->lld_it, sizeof(*lld->lld_it)); - } - de->d_fsdata = NULL; call_rcu(&lld->lld_rcu_head, free_dentry_data); diff --git a/lustre/llite/llite_internal.h b/lustre/llite/llite_internal.h index d9ec393..9dda901 100644 --- a/lustre/llite/llite_internal.h +++ b/lustre/llite/llite_internal.h @@ -76,7 +76,6 @@ #define TIMES_SET_FLAGS (ATTR_MTIME_SET | ATTR_ATIME_SET | ATTR_TIMES_SET) struct ll_dentry_data { - struct lookup_intent *lld_it; unsigned int lld_sa_generation; unsigned int lld_invalid:1; unsigned int lld_nfs_dentry:1; -- 1.8.3.1