X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fosd-ldiskfs%2Fosd_quota_fmt.c;h=1883cd8a3557f2a26fdace1b5c0ec6fca92bb235;hb=5e30a2c06176f50f5e17aba68fdae7e38d922d33;hp=9cc5c7cb035a746b7091bd8f9af0040e6f0d43a4;hpb=ccabce23bd9e366c345c852f565766a799f61238;p=fs%2Flustre-release.git diff --git a/lustre/osd-ldiskfs/osd_quota_fmt.c b/lustre/osd-ldiskfs/osd_quota_fmt.c index 9cc5c7c..1883cd8 100644 --- a/lustre/osd-ldiskfs/osd_quota_fmt.c +++ b/lustre/osd-ldiskfs/osd_quota_fmt.c @@ -277,7 +277,7 @@ int walk_tree_dqentry(const struct lu_env *env, struct osd_object *obj, } ret = 1; - for (; index <= 0xff && ret > 0; index++) { + for (; index <= 0xff; index++) { blk = le32_to_cpu(ref[index]); if (!blk) /* No reference */ continue; @@ -288,7 +288,10 @@ int walk_tree_dqentry(const struct lu_env *env, struct osd_object *obj, else ret = walk_block_dqentry(env, obj, type, blk, 0, it); + if (ret <= 0) + break; } + it->oiq_blk[depth + 1] = blk; it->oiq_index[depth] = index;