]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging/lustre: Remove unused target_print_req()
authorOleg Drokin <green@linuxhacker.ru>
Tue, 29 Sep 2015 03:43:44 +0000 (23:43 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Sep 2015 13:22:27 +0000 (15:22 +0200)
This is a server-side request printing function, so we don't
really need it on the client.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Reported-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/include/lprocfs_status.h
drivers/staging/lustre/lustre/ptlrpc/lproc_ptlrpc.c

index 5262b4f216132c4dd698dcc7a8fd076bedf287f4..22f3777c72b8f81d3808a83e8bce76fda516735f 100644 (file)
@@ -720,10 +720,6 @@ ssize_t lustre_attr_store(struct kobject *kobj, struct attribute *attr,
 
 extern const struct sysfs_ops lustre_sysfs_ops;
 
-/* lproc_ptlrpc.c */
-struct ptlrpc_request;
-void target_print_req(void *seq_file, struct ptlrpc_request *req);
-
 /* all quota proc functions */
 int lprocfs_quota_rd_bunit(char *page, char **start,
                           loff_t off, int count,
index d66a7b877d5d4f798d1509fa9b989f1a31df15d1..3a212b4be9a1d3139014640265cef174b27d84b5 100644 (file)
@@ -890,36 +890,6 @@ ptlrpc_lprocfs_svc_req_history_next(struct seq_file *s,
        return NULL;
 }
 
-/* common ost/mdt so_req_printer */
-void target_print_req(void *seq_file, struct ptlrpc_request *req)
-{
-       /* Called holding srv_lock with irqs disabled.
-        * Print specific req contents and a newline.
-        * CAVEAT EMPTOR: check request message length before printing!!!
-        * You might have received any old crap so you must be just as
-        * careful here as the service's request parser!!! */
-       struct seq_file *sf = seq_file;
-
-       switch (req->rq_phase) {
-       case RQ_PHASE_NEW:
-               /* still awaiting a service thread's attention, or rejected
-                * because the generic request message didn't unpack */
-               seq_printf(sf, "<not swabbed>\n");
-               break;
-       case RQ_PHASE_INTERPRET:
-               /* being handled, so basic msg swabbed, and opc is valid
-                * but racing with mds_handle() */
-       case RQ_PHASE_COMPLETE:
-               /* been handled by mds_handle() reply state possibly still
-                * volatile */
-               seq_printf(sf, "opc %d\n", lustre_msg_get_opc(req->rq_reqmsg));
-               break;
-       default:
-               DEBUG_REQ(D_ERROR, req, "bad phase %d", req->rq_phase);
-       }
-}
-EXPORT_SYMBOL(target_print_req);
-
 static int ptlrpc_lprocfs_svc_req_history_show(struct seq_file *s, void *iter)
 {
        struct ptlrpc_service *svc = s->private;