staging/lustre: Remove unused lli_open_count from struct ll_inode_info
authorOleg Drokin <green@linuxhacker.ru>
Thu, 25 Feb 2016 03:00:23 +0000 (22:00 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Feb 2016 06:05:50 +0000 (22:05 -0800)
Capabilities code was the only user and it is long gone.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/llite/llite_internal.h
drivers/staging/lustre/lustre/llite/llite_lib.c

index 46144ffc18b6e122a0035e6b33f93b39d56c4ebf..bbd5ab8f6e9446fbcc4d0c57c8fa020f31457419 100644 (file)
@@ -133,10 +133,8 @@ struct ll_inode_info {
         * for allocating OST objects after a mknod() and later open-by-FID. */
        struct lu_fid              lli_pfid;
 
-       struct list_head                      lli_close_list;
-       /* open count currently used by capability only, indicate whether
-        * capability needs renewal */
-       atomic_t                    lli_open_count;
+       struct list_head              lli_close_list;
+
        unsigned long                 lli_rmtperm_time;
 
        /* handle is to be sent to MDS later on done_writing and setattr.
index 67b4b80e0b11011c98d90108655d2c64209c250a..b652aeeb7d654e353a3aa2d5cb3e677dd054dad3 100644 (file)
@@ -797,7 +797,6 @@ void ll_lli_init(struct ll_inode_info *lli)
        /* Do not set lli_fid, it has been initialized already. */
        fid_zero(&lli->lli_pfid);
        INIT_LIST_HEAD(&lli->lli_close_list);
-       atomic_set(&lli->lli_open_count, 0);
        lli->lli_rmtperm_time = 0;
        lli->lli_pending_och = NULL;
        lli->lli_mds_read_och = NULL;