# include <lustre_quota.h>
#endif
-static struct obd_ops cmm_obd_device_ops = {
+struct obd_ops cmm_obd_device_ops = {
.o_owner = THIS_MODULE
};
}
static int cmm_quota_check(const struct lu_env *env, struct md_device *m,
- struct obd_export *exp, __u32 type)
+ __u32 type)
{
struct cmm_device *cmm_dev = md2cmm_dev(m);
int rc;
rc = cmm_child_ops(cmm_dev)->mdo_quota.mqo_check(env,
cmm_dev->cmm_child,
- exp, type);
+ type);
RETURN(rc);
}
int rc;
ENTRY;
- /* disable quota for CMD case temporary. */
- if (cmm_dev->cmm_tgt_count)
- RETURN(-EOPNOTSUPP);
-
rc = cmm_child_ops(cmm_dev)->mdo_quota.mqo_off(env,
cmm_dev->cmm_child,
type);
/* --- lu_device_type operations --- */
int cmm_upcall(const struct lu_env *env, struct md_device *md,
- enum md_upcall_event ev)
+ enum md_upcall_event ev, void *data)
{
int rc;
ENTRY;
CERROR("can not init md size %d\n", rc);
/* fall through */
default:
- rc = md_do_upcall(env, md, ev);
+ rc = md_do_upcall(env, md, ev, data);
}
RETURN(rc);
}