Commit 649280ab authored by Shraddha Barke's avatar Shraddha Barke Committed by Greg Kroah-Hartman

Staging: lustre: fld: Remove unused functions

Remove functions fld_cache_delete and fld_cache_delete_nolock
since they are defined but not used.
Signed-off-by: default avatarShraddha Barke <shraddha.6596@gmail.com>
Reviewed-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 741fddbf
...@@ -444,36 +444,10 @@ int fld_cache_insert(struct fld_cache *cache, ...@@ -444,36 +444,10 @@ int fld_cache_insert(struct fld_cache *cache,
return rc; 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. * 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 struct fld_cache_entry
*fld_cache_entry_lookup_nolock(struct fld_cache *cache, *fld_cache_entry_lookup_nolock(struct fld_cache *cache,
......
...@@ -156,10 +156,6 @@ int fld_cache_insert(struct fld_cache *cache, ...@@ -156,10 +156,6 @@ int fld_cache_insert(struct fld_cache *cache,
struct fld_cache_entry struct fld_cache_entry
*fld_cache_entry_create(const struct lu_seq_range *range); *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, int fld_cache_lookup(struct fld_cache *cache,
const u64 seq, struct lu_seq_range *range); const u64 seq, struct lu_seq_range *range);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment