From: Oleg Drokin Date: Thu, 1 Oct 2015 04:12:30 +0000 (-0400) Subject: staging/lustre/ldlm: Remove unused ldlm_pool_set_slv() X-Git-Tag: firefly_0821_release~176^2~802^2~1342 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a5613d7545519e9896d08a8061a6bbd546c1c10b;p=firefly-linux-kernel-4.4.55.git staging/lustre/ldlm: Remove unused ldlm_pool_set_slv() Signed-off-by: Oleg Drokin Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/lustre/lustre/include/lustre_dlm.h b/drivers/staging/lustre/lustre/include/lustre_dlm.h index 1b5f298846a6..ec717ebb1701 100644 --- a/drivers/staging/lustre/lustre/include/lustre_dlm.h +++ b/drivers/staging/lustre/lustre/include/lustre_dlm.h @@ -1402,7 +1402,6 @@ int ldlm_pool_recalc(struct ldlm_pool *pl); __u32 ldlm_pool_get_lvf(struct ldlm_pool *pl); __u64 ldlm_pool_get_slv(struct ldlm_pool *pl); __u32 ldlm_pool_get_limit(struct ldlm_pool *pl); -void ldlm_pool_set_slv(struct ldlm_pool *pl, __u64 slv); void ldlm_pool_set_clv(struct ldlm_pool *pl, __u64 clv); void ldlm_pool_set_limit(struct ldlm_pool *pl, __u32 limit); void ldlm_pool_add(struct ldlm_pool *pl, struct ldlm_lock *lock); diff --git a/drivers/staging/lustre/lustre/ldlm/ldlm_pool.c b/drivers/staging/lustre/lustre/ldlm/ldlm_pool.c index cbe4b7b5cb24..94cdf5f3ffda 100644 --- a/drivers/staging/lustre/lustre/ldlm/ldlm_pool.c +++ b/drivers/staging/lustre/lustre/ldlm/ldlm_pool.c @@ -1009,19 +1009,6 @@ __u64 ldlm_pool_get_slv(struct ldlm_pool *pl) } EXPORT_SYMBOL(ldlm_pool_get_slv); -/** - * Sets passed \a slv to \a pl. - * - * \pre ->pl_lock is not locked. - */ -void ldlm_pool_set_slv(struct ldlm_pool *pl, __u64 slv) -{ - spin_lock(&pl->pl_lock); - pl->pl_server_lock_volume = slv; - spin_unlock(&pl->pl_lock); -} -EXPORT_SYMBOL(ldlm_pool_set_slv); - /** * Sets passed \a clv to \a pl. *