Staging: lustre: libcfs: Remove unused functions
The functions cfs_hash_bd_findadd_locked and cfs_hash_bd_finddel_locked are not used anywhere. Thus remove these functions. Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
5e6f5901f0
commit
a2aadf23d1
@ -640,13 +640,6 @@ cfs_hash_bd_lookup_locked(struct cfs_hash *hs, struct cfs_hash_bd *bd,
|
||||
struct hlist_node *
|
||||
cfs_hash_bd_peek_locked(struct cfs_hash *hs, struct cfs_hash_bd *bd,
|
||||
const void *key);
|
||||
struct hlist_node *
|
||||
cfs_hash_bd_findadd_locked(struct cfs_hash *hs, struct cfs_hash_bd *bd,
|
||||
const void *key, struct hlist_node *hnode,
|
||||
int insist_add);
|
||||
struct hlist_node *
|
||||
cfs_hash_bd_finddel_locked(struct cfs_hash *hs, struct cfs_hash_bd *bd,
|
||||
const void *key, struct hlist_node *hnode);
|
||||
|
||||
/**
|
||||
* operations on cfs_hash bucket (bd: bucket descriptor),
|
||||
|
@ -682,27 +682,6 @@ cfs_hash_bd_peek_locked(struct cfs_hash *hs, struct cfs_hash_bd *bd,
|
||||
}
|
||||
EXPORT_SYMBOL(cfs_hash_bd_peek_locked);
|
||||
|
||||
struct hlist_node *
|
||||
cfs_hash_bd_findadd_locked(struct cfs_hash *hs, struct cfs_hash_bd *bd,
|
||||
const void *key, struct hlist_node *hnode,
|
||||
int noref)
|
||||
{
|
||||
return cfs_hash_bd_lookup_intent(hs, bd, key, hnode,
|
||||
(!noref * CFS_HS_LOOKUP_MASK_REF) |
|
||||
CFS_HS_LOOKUP_IT_ADD);
|
||||
}
|
||||
EXPORT_SYMBOL(cfs_hash_bd_findadd_locked);
|
||||
|
||||
struct hlist_node *
|
||||
cfs_hash_bd_finddel_locked(struct cfs_hash *hs, struct cfs_hash_bd *bd,
|
||||
const void *key, struct hlist_node *hnode)
|
||||
{
|
||||
/* hnode can be NULL, we find the first item with @key */
|
||||
return cfs_hash_bd_lookup_intent(hs, bd, key, hnode,
|
||||
CFS_HS_LOOKUP_IT_FINDDEL);
|
||||
}
|
||||
EXPORT_SYMBOL(cfs_hash_bd_finddel_locked);
|
||||
|
||||
static void
|
||||
cfs_hash_multi_bd_lock(struct cfs_hash *hs, struct cfs_hash_bd *bds,
|
||||
unsigned n, int excl)
|
||||
|
Loading…
Reference in New Issue
Block a user