X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fquota%2Fquota_check.c;h=6732d063b0c21644038d9664c5e14e022b32ce59;hp=c6e8daa4c55cfb05eebeb65b51827c46b493c52f;hb=fb51847c046516f07f3af75226a758da25845bcc;hpb=a7186f3ac0d077247f9f28a97afdb059d13cc412 diff --git a/lustre/quota/quota_check.c b/lustre/quota/quota_check.c index c6e8daa..6732d06 100644 --- a/lustre/quota/quota_check.c +++ b/lustre/quota/quota_check.c @@ -301,7 +301,10 @@ int lov_quota_check(struct obd_device *unused, struct obd_export *exp, obd_getref(obd); for (i = 0; i < lov->desc.ld_tgt_count; i++) { - if (!lov->lov_tgts[i] || !lov->lov_tgts[i]->ltd_active) { + if (!lov->lov_tgts[i]) + continue; + + if (!lov->lov_tgts[i]->ltd_active) { CERROR("lov idx %d inactive\n", i); rc = -EIO; goto out; @@ -311,6 +314,9 @@ int lov_quota_check(struct obd_device *unused, struct obd_export *exp, for (i = 0; i < lov->desc.ld_tgt_count; i++) { int err; + if (!lov->lov_tgts[i]) + continue; + err = obd_quotacheck(lov->lov_tgts[i]->ltd_exp, oqctl); if (err && !rc) rc = err;