* GPL HEADER END
*/
/*
- * Copyright 2008 Sun Microsystems, Inc. All rights reserved
+ * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
/*
}
int mdd_quota_check(const struct lu_env *env, struct md_device *m,
- struct obd_export *exp, __u32 type)
+ __u32 type)
{
struct mdd_device *mdd = lu2mdd_dev(&m->md_lu_dev);
struct obd_device *obd = mdd->mdd_obd_dev;
+ struct obd_export *exp = md_quota(env)->mq_exp;
struct obd_quotactl *oqctl = &mdd_env_info(env)->mti_oqctl;
int rc;
ENTRY;
}
int mdd_quota_on(const struct lu_env *env, struct md_device *m,
- __u32 type, __u32 id)
+ __u32 type)
{
struct mdd_device *mdd = lu2mdd_dev(&m->md_lu_dev);
struct obd_device *obd = mdd->mdd_obd_dev;
oqctl->qc_cmd = Q_QUOTAON;
oqctl->qc_type = type;
- oqctl->qc_id = id;
rc = lquota_ctl(mds_quota_interface_ref, obd, oqctl);
RETURN(rc);
}
int mdd_quota_off(const struct lu_env *env, struct md_device *m,
- __u32 type, __u32 id)
+ __u32 type)
{
struct mdd_device *mdd = lu2mdd_dev(&m->md_lu_dev);
struct obd_device *obd = mdd->mdd_obd_dev;
oqctl->qc_cmd = Q_QUOTAOFF;
oqctl->qc_type = type;
- oqctl->qc_id = id;
rc = lquota_ctl(mds_quota_interface_ref, obd, oqctl);
RETURN(rc);
}