Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
b=21174 fix quotacheck with non-consecutive OST indices
[fs/lustre-release.git]
/
lustre
/
quota
/
quota_check.c
diff --git
a/lustre/quota/quota_check.c
b/lustre/quota/quota_check.c
index
c6e8daa
..
6732d06
100644
(file)
--- 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++) {
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;
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;
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;
err = obd_quotacheck(lov->lov_tgts[i]->ltd_exp, oqctl);
if (err && !rc)
rc = err;