]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging/lustre/ldlm: Remove unused ldlm_enqueue_pack()
authorOleg Drokin <green@linuxhacker.ru>
Thu, 1 Oct 2015 04:12:24 +0000 (00:12 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 Oct 2015 09:17:19 +0000 (11:17 +0200)
Not used anywhere

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_request.c

index ce91ccc358a763be26dfc43a64ea2845c908487c..72c52eff89add02bfd1fb044d8c0a2e7a863e3db 100644 (file)
@@ -1307,7 +1307,6 @@ int ldlm_prep_elc_req(struct obd_export *exp,
                      int version, int opc, int canceloff,
                      struct list_head *cancels, int count);
 
-struct ptlrpc_request *ldlm_enqueue_pack(struct obd_export *exp, int lvb_len);
 int ldlm_cli_enqueue_fini(struct obd_export *exp, struct ptlrpc_request *req,
                          ldlm_type_t type, __u8 with_policy, ldlm_mode_t mode,
                          __u64 *flags, void *lvb, __u32 lvb_len,
index 9856133306e3532ce93461cc8cd109b15be6fb36..c73661cae8af92b0d7243f11e88904c75d173d52 100644 (file)
@@ -742,27 +742,6 @@ int ldlm_prep_enqueue_req(struct obd_export *exp, struct ptlrpc_request *req,
 }
 EXPORT_SYMBOL(ldlm_prep_enqueue_req);
 
-struct ptlrpc_request *ldlm_enqueue_pack(struct obd_export *exp, int lvb_len)
-{
-       struct ptlrpc_request *req;
-       int rc;
-
-       req = ptlrpc_request_alloc(class_exp2cliimp(exp), &RQF_LDLM_ENQUEUE);
-       if (req == NULL)
-               return ERR_PTR(-ENOMEM);
-
-       rc = ldlm_prep_enqueue_req(exp, req, NULL, 0);
-       if (rc) {
-               ptlrpc_request_free(req);
-               return ERR_PTR(rc);
-       }
-
-       req_capsule_set_size(&req->rq_pill, &RMF_DLM_LVB, RCL_SERVER, lvb_len);
-       ptlrpc_request_set_replen(req);
-       return req;
-}
-EXPORT_SYMBOL(ldlm_enqueue_pack);
-
 /**
  * Client-side lock enqueue.
  *