From ca646b1bd3bedb1727e5a8d6ac803abefa239fef Mon Sep 17 00:00:00 2001 From: Oleg Drokin Date: Sun, 19 Jun 2016 22:41:00 -0400 Subject: [PATCH] LU-3105 llite: Remove unused lli_open_count from ll_inode_info It was only used by now removed capabilities code. Change-Id: Ica5617b0408cacbfbc7b08000e5d98a655f08e31 Signed-off-by: Oleg Drokin Reviewed-on: http://review.whamcloud.com/18544 Tested-by: Jenkins Reviewed-by: Alex Zhuravlev Reviewed-by: James Simmons Reviewed-by: Bob Glossman Tested-by: Maloo --- lustre/llite/llite_internal.h | 4 ---- lustre/llite/llite_lib.c | 1 - 2 files changed, 5 deletions(-) diff --git a/lustre/llite/llite_internal.h b/lustre/llite/llite_internal.h index f906ce2..b91dfd4 100644 --- a/lustre/llite/llite_internal.h +++ b/lustre/llite/llite_internal.h @@ -118,10 +118,6 @@ struct ll_inode_info { /* master inode fid for stripe directory */ struct lu_fid lli_pfid; - /* open count currently used by capability only, indicate whether - * capability needs renewal */ - atomic_t lli_open_count; - /* We need all three because every inode may be opened in different * modes */ struct obd_client_handle *lli_mds_read_och; diff --git a/lustre/llite/llite_lib.c b/lustre/llite/llite_lib.c index 276457b..2e79ac8 100644 --- a/lustre/llite/llite_lib.c +++ b/lustre/llite/llite_lib.c @@ -901,7 +901,6 @@ void ll_lli_init(struct ll_inode_info *lli) lli->lli_posix_acl = NULL; /* Do not set lli_fid, it has been initialized already. */ fid_zero(&lli->lli_pfid); - atomic_set(&lli->lli_open_count, 0); lli->lli_mds_read_och = NULL; lli->lli_mds_write_och = NULL; lli->lli_mds_exec_och = NULL; -- 1.8.3.1