staging/lustre: Remove unused members of struct ll_sb_info
authorOleg Drokin <green@linuxhacker.ru>
Thu, 25 Feb 2016 03:00:42 +0000 (22:00 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Feb 2016 06:08:59 +0000 (22:08 -0800)
ll_orphan_dentry_list and ll_conn_chain are not used
and could be removed.

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 12fdca9cb7c91e221b41c4bd52c169463056d765..f6921ffe54f73a6d9200a9cef43ede6e7f6cb970 100644 (file)
@@ -478,10 +478,8 @@ struct ll_sb_info {
        int                    ll_flags;
        unsigned int              ll_umounting:1,
                                  ll_xattr_cache_enabled:1;
-       struct list_head                ll_conn_chain; /* per-conn chain of SBs */
        struct lustre_client_ocd  ll_lco;
 
-       struct list_head                ll_orphan_dentry_list; /*please don't ask -p*/
        struct ll_close_queue    *ll_lcq;
 
        struct lprocfs_stats     *ll_stats; /* lprocfs stats counter */
index d03f884f0c21d17dcafc0aceca037a99fbbfee83..9ae1cc8ab47a2b75e0fb29422b5080b51c9189a8 100644 (file)
@@ -102,8 +102,6 @@ static struct ll_sb_info *ll_init_sbi(struct super_block *sb)
        sbi->ll_ra_info.ra_max_pages = sbi->ll_ra_info.ra_max_pages_per_file;
        sbi->ll_ra_info.ra_max_read_ahead_whole_pages =
                                           SBI_DEFAULT_READAHEAD_WHOLE_MAX;
-       INIT_LIST_HEAD(&sbi->ll_conn_chain);
-       INIT_LIST_HEAD(&sbi->ll_orphan_dentry_list);
 
        ll_generate_random_uuid(uuid);
        class_uuid_unparse(uuid, &sbi->ll_sb_uuid);
@@ -626,8 +624,6 @@ static void client_common_put_super(struct super_block *sb)
 
        cl_sb_fini(sb);
 
-       list_del(&sbi->ll_conn_chain);
-
        obd_fid_fini(sbi->ll_dt_exp->exp_obd);
        obd_disconnect(sbi->ll_dt_exp);
        sbi->ll_dt_exp = NULL;