Whamcloud - gitweb
LU-3105 llite: Remove unused lli_open_count from ll_inode_info 44/18544/4
authorOleg Drokin <oleg.drokin@intel.com>
Mon, 20 Jun 2016 02:41:00 +0000 (22:41 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 5 Jul 2016 23:48:27 +0000 (23:48 +0000)
It was only used by now removed capabilities code.

Change-Id: Ica5617b0408cacbfbc7b08000e5d98a655f08e31
Signed-off-by: Oleg Drokin <oleg.drokin@intel.com>
Reviewed-on: http://review.whamcloud.com/18544
Tested-by: Jenkins
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
lustre/llite/llite_internal.h
lustre/llite/llite_lib.c

index f906ce2..b91dfd4 100644 (file)
@@ -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;
index 276457b..2e79ac8 100644 (file)
@@ -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;