staging/lustre/ldlm: Remove unused ldlm_pool_get_clv()
authorOleg Drokin <green@linuxhacker.ru>
Thu, 1 Oct 2015 04:12:29 +0000 (00:12 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 Oct 2015 09:17:19 +0000 (11:17 +0200)
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/include/lustre_dlm.h
drivers/staging/lustre/lustre/ldlm/ldlm_pool.c

index 4d81e73fc862eccfe00ab517fbe25c938274fd5a..1b5f298846a6adeb234f8b9a2504e9c086bc3fe1 100644 (file)
@@ -1401,7 +1401,6 @@ int ldlm_pool_setup(struct ldlm_pool *pl, int limit);
 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);
-__u64 ldlm_pool_get_clv(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);
index 1c9d67fbeb27c97d8f60b437568df917ac61c73d..cbe4b7b5cb24d04b90eea481463a9c1e32007d1d 100644 (file)
@@ -1022,22 +1022,6 @@ void ldlm_pool_set_slv(struct ldlm_pool *pl, __u64 slv)
 }
 EXPORT_SYMBOL(ldlm_pool_set_slv);
 
-/**
- * Returns current \a pl CLV.
- *
- * \pre ->pl_lock is not locked.
- */
-__u64 ldlm_pool_get_clv(struct ldlm_pool *pl)
-{
-       __u64 slv;
-
-       spin_lock(&pl->pl_lock);
-       slv = pl->pl_client_lock_volume;
-       spin_unlock(&pl->pl_lock);
-       return slv;
-}
-EXPORT_SYMBOL(ldlm_pool_get_clv);
-
 /**
  * Sets passed \a clv to \a pl.
  *