staging/lustre/mdc: remove obsolete llog ioctl handlers
authorJohn L. Hammond <john.hammond@intel.com>
Sat, 30 Aug 2014 21:12:50 +0000 (17:12 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 30 Aug 2014 22:08:04 +0000 (15:08 -0700)
In mdc_iocontrol() remove the handlers for the obsolete llog ioctls
OBD_IOC_PARSE, OBD_IOC_LLOG_INFO, and OBD_IOC_LLOG_PRINT.

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/mdc/mdc_request.c

index a2a63345ba529651ea4aaeb6bff410d2fd9da483..e6e25155595ed9bfa5ee49c32049d627f4aff075 100644 (file)
@@ -1830,7 +1830,6 @@ static int mdc_iocontrol(unsigned int cmd, struct obd_export *exp, int len,
        struct obd_device *obd = exp->exp_obd;
        struct obd_ioctl_data *data = karg;
        struct obd_import *imp = obd->u.cli.cl_import;
-       struct llog_ctxt *ctxt;
        int rc;
 
        if (!try_module_get(THIS_MODULE)) {
@@ -1886,20 +1885,6 @@ static int mdc_iocontrol(unsigned int cmd, struct obd_export *exp, int len,
        case IOC_OSC_SET_ACTIVE:
                rc = ptlrpc_set_import_active(imp, data->ioc_offset);
                goto out;
-       case OBD_IOC_PARSE: {
-               ctxt = llog_get_context(exp->exp_obd, LLOG_CONFIG_REPL_CTXT);
-               rc = class_config_parse_llog(NULL, ctxt, data->ioc_inlbuf1,
-                                            NULL);
-               llog_ctxt_put(ctxt);
-               goto out;
-       }
-       case OBD_IOC_LLOG_INFO:
-       case OBD_IOC_LLOG_PRINT: {
-               ctxt = llog_get_context(obd, LLOG_CONFIG_REPL_CTXT);
-               rc = llog_ioctl(NULL, ctxt, cmd, data);
-               llog_ctxt_put(ctxt);
-               goto out;
-       }
        case OBD_IOC_POLL_QUOTACHECK:
                rc = mdc_quota_poll_check(exp, (struct if_quotacheck *)karg);
                goto out;