Whamcloud - gitweb
LU-6142 fld: remove fci_no_shrink field. 75/35875/3
authorMr NeilBrown <neilb@suse.com>
Thu, 22 Aug 2019 05:03:37 +0000 (15:03 +1000)
committerOleg Drokin <green@whamcloud.com>
Mon, 16 Sep 2019 23:01:19 +0000 (23:01 +0000)
This field is never set, so is always zero.
Remove it, and the one place where it is tested.

Test-Parameters: trivial
Signed-off-by: Mr NeilBrown <neilb@suse.com>
Change-Id: I4e576cc1984e0fac829a65c6b53d6ddac0d0ee88
Reviewed-on: https://review.whamcloud.com/35875
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Shaun Tancheff <stancheff@cray.com>
Reviewed-by: Arshad Hussain <arshad.super@gmail.com>
lustre/fld/fld_cache.c
lustre/fld/fld_internal.h

index f638e0d..482fd10 100644 (file)
@@ -386,8 +386,7 @@ int fld_cache_insert_nolock(struct fld_cache *cache,
         * insertion loop.
         */
 
-       if (!cache->fci_no_shrink)
-               fld_cache_shrink(cache);
+       fld_cache_shrink(cache);
 
        head = &cache->fci_entries_head;
 
index 5fce515..e326edd 100644 (file)
@@ -117,7 +117,6 @@ struct fld_cache {
         /**
          * Cache name used for debug and messages. */
         char                     fci_name[80];
-       unsigned int             fci_no_shrink:1;
 };
 
 enum {