X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fquota%2Flquota_entry.c;h=3cc8fb2709d9e1a7119cb5b4ef03868b77b40cd1;hb=refs%2Fchanges%2F24%2F35224%2F4;hp=38324e9e968a3718b2a4e8ce6114d7257922a74b;hpb=d96a9248708d4da02728c9976a9a90ba29bd2bc0;p=fs%2Flustre-release.git diff --git a/lustre/quota/lquota_entry.c b/lustre/quota/lquota_entry.c index 38324e9..3cc8fb2 100644 --- a/lustre/quota/lquota_entry.c +++ b/lustre/quota/lquota_entry.c @@ -100,12 +100,15 @@ void lquota_lqe_debug0(struct lquota_entry *lqe, const char *fmt, ...) { struct lquota_site *site = lqe->lqe_site; + struct va_format vaf; va_list args; LASSERT(site->lqs_ops->lqe_debug != NULL); va_start(args, fmt); - site->lqs_ops->lqe_debug(lqe, site->lqs_parent, msgdata, fmt, args); + vaf.fmt = fmt; + vaf.va = &args; + site->lqs_ops->lqe_debug(lqe, site->lqs_parent, msgdata, &vaf); va_end(args); } @@ -203,7 +206,8 @@ struct lquota_site *lquota_site_alloc(const struct lu_env *env, void *parent, char hashname[15]; ENTRY; - LASSERT(qtype < MAXQUOTAS); + if (qtype >= LL_MAXQUOTAS) + RETURN(ERR_PTR(-ENOTSUPP)); OBD_ALLOC_PTR(site); if (site == NULL) @@ -325,7 +329,7 @@ struct lquota_entry *lqe_locate(const struct lu_env *env, OBD_SLAB_ALLOC_PTR_GFP(new, lqe_kmem, GFP_NOFS); if (new == NULL) { - CERROR("Fail to allocate lqe for id:"LPU64", " + CERROR("Fail to allocate lqe for id:%llu, " "hash:%s\n", qid->qid_uid, site->lqs_hash->hs_name); RETURN(ERR_PTR(-ENOMEM)); }