]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
staging/lustre/ldlm: Remove unused ldlm_resource_insert_lock_after()
authorOleg Drokin <green@linuxhacker.ru>
Thu, 1 Oct 2015 04:12:34 +0000 (00:12 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 Oct 2015 09:17:19 +0000 (11:17 +0200)
It was only used on the server.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/ldlm/ldlm_internal.h
drivers/staging/lustre/lustre/ldlm/ldlm_resource.c

index 1293f13fade1317c99ac0777a7320c244868f556..56805d03dfdfa5499934af75db8220df0f35d528 100644 (file)
@@ -116,8 +116,6 @@ int ldlm_get_enq_timeout(struct ldlm_lock *lock);
 
 /* ldlm_resource.c */
 int ldlm_resource_putref_locked(struct ldlm_resource *res);
-void ldlm_resource_insert_lock_after(struct ldlm_lock *original,
-                                    struct ldlm_lock *new);
 void ldlm_namespace_free_prior(struct ldlm_namespace *ns,
                               struct obd_import *imp, int force);
 void ldlm_namespace_free_post(struct ldlm_namespace *ns);
index cd65efe72819ad15a883fb37d1287f6abeecb8cc..99063727d1fe76d0c84ca959794f3429ad3ae278 100644 (file)
@@ -1281,32 +1281,6 @@ void ldlm_resource_add_lock(struct ldlm_resource *res, struct list_head *head,
        list_add_tail(&lock->l_res_link, head);
 }
 
-/**
- * Insert a lock into resource after specified lock.
- *
- * Obtain resource description from the lock we are inserting after.
- */
-void ldlm_resource_insert_lock_after(struct ldlm_lock *original,
-                                    struct ldlm_lock *new)
-{
-       struct ldlm_resource *res = original->l_resource;
-
-       check_res_locked(res);
-
-       ldlm_resource_dump(D_INFO, res);
-       LDLM_DEBUG(new, "About to insert this lock after %p:\n", original);
-
-       if (new->l_flags & LDLM_FL_DESTROYED) {
-               CDEBUG(D_OTHER, "Lock destroyed, not adding to resource\n");
-               goto out;
-       }
-
-       LASSERT(list_empty(&new->l_res_link));
-
-       list_add(&new->l_res_link, &original->l_res_link);
- out:;
-}
-
 void ldlm_resource_unlink_lock(struct ldlm_lock *lock)
 {
        int type = lock->l_resource->lr_type;