X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fquota%2Fquota_interface.c;h=3c3b16f2632008a346d582943f05e13da2d7ddce;hp=df2039a8fae79cb353ff72c3b0622e69750a745b;hb=62ef9c949753efb9535fa5b1eb2eb38ec663917f;hpb=53d3367a988039b58d8a26ef747c0b317567a637 diff --git a/lustre/quota/quota_interface.c b/lustre/quota/quota_interface.c index df2039a..3c3b16f 100644 --- a/lustre/quota/quota_interface.c +++ b/lustre/quota/quota_interface.c @@ -164,7 +164,7 @@ static int filter_quota_enforce(struct obd_device *obd, unsigned int ignore) { ENTRY; - if (!sb_any_quota_enabled(obd->u.obt.obt_sb)) + if (!ll_sb_any_quota_active(obd->u.obt.obt_sb)) RETURN(0); if (ignore) { @@ -186,7 +186,7 @@ static int filter_quota_getflag(struct obd_device *obd, struct obdo *oa) struct obd_quotactl *oqctl; ENTRY; - if (!sb_any_quota_enabled(obt->obt_sb)) + if (!ll_sb_any_quota_active(obt->obt_sb)) RETURN(0); OBD_ALLOC_PTR(oqctl); @@ -380,7 +380,7 @@ int quota_is_set(struct obd_device *obd, const unsigned int id[], int flag) struct lustre_qunit_size *lqs; int i, q_set = 0; - if (!sb_any_quota_enabled(obd->u.obt.obt_qctxt.lqc_sb)) + if (!ll_sb_any_quota_active(obd->u.obt.obt_qctxt.lqc_sb)) RETURN(0); for (i = 0; i < MAXQUOTAS; i++) { @@ -531,7 +531,7 @@ static int quota_pending_commit(struct obd_device *obd, const unsigned int id[], CDEBUG(D_QUOTA, "commit pending quota for %s\n", obd->obd_name); CLASSERT(MAXQUOTAS < 4); - if (!sb_any_quota_enabled(qctxt->lqc_sb)) + if (!ll_sb_any_quota_active(qctxt->lqc_sb)) RETURN(0); do_gettimeofday(&work_start);