* GPL HEADER END
*/
/*
- * Copyright (c) 2012, 2015, Intel Corporation.
+ * Copyright (c) 2012, 2016, Intel Corporation.
* Use is subject to license terms.
*
* Lustre administrative quota format.
}
ret = 1;
- for (; index <= 0xff && ret > 0; index++) {
+ for (; index <= 0xff; index++) {
blk = le32_to_cpu(ref[index]);
if (!blk) /* No reference */
continue;
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;