Staging: lustre: fld: Remove unused functions
authorShraddha Barke <shraddha.6596@gmail.com>
Fri, 30 Oct 2015 15:29:07 +0000 (20:59 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Nov 2015 04:02:47 +0000 (20:02 -0800)
Remove functions fld_cache_delete and fld_cache_delete_nolock
since they are defined but not used.

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/fld/fld_cache.c
drivers/staging/lustre/lustre/fld/fld_internal.h

index c4db390a73d509c482b032b1d2187ec7460c5160..baa04074a61f658eead28b62cbe05f902ca58d30 100644 (file)
@@ -444,36 +444,10 @@ int fld_cache_insert(struct fld_cache *cache,
        return rc;
 }
 
-void fld_cache_delete_nolock(struct fld_cache *cache,
-                     const struct lu_seq_range *range)
-{
-       struct fld_cache_entry *flde;
-       struct fld_cache_entry *tmp;
-       struct list_head *head;
-
-       head = &cache->fci_entries_head;
-       list_for_each_entry_safe(flde, tmp, head, fce_list) {
-               /* add list if next is end of list */
-               if (range->lsr_start == flde->fce_range.lsr_start ||
-                  (range->lsr_end == flde->fce_range.lsr_end &&
-                   range->lsr_flags == flde->fce_range.lsr_flags)) {
-                       fld_cache_entry_delete(cache, flde);
-                       break;
-               }
-       }
-}
-
 /**
  * Delete FLD entry in FLD cache.
  *
  */
-void fld_cache_delete(struct fld_cache *cache,
-                     const struct lu_seq_range *range)
-{
-       write_lock(&cache->fci_lock);
-       fld_cache_delete_nolock(cache, range);
-       write_unlock(&cache->fci_lock);
-}
 
 struct fld_cache_entry
 *fld_cache_entry_lookup_nolock(struct fld_cache *cache,
index ab184a68528727d12e37e7327bb3a6f1592e786f..88ec7b114caa9ba56164f6e8f26c8602d16c68d9 100644 (file)
@@ -156,10 +156,6 @@ int fld_cache_insert(struct fld_cache *cache,
 struct fld_cache_entry
 *fld_cache_entry_create(const struct lu_seq_range *range);
 
-void fld_cache_delete(struct fld_cache *cache,
-                     const struct lu_seq_range *range);
-void fld_cache_delete_nolock(struct fld_cache *cache,
-                            const struct lu_seq_range *range);
 int fld_cache_lookup(struct fld_cache *cache,
                     const u64 seq, struct lu_seq_range *range);