From: wangdi Date: Tue, 19 Sep 2006 16:12:57 +0000 (+0000) Subject: Branch: b_new_cmd X-Git-Tag: v1_8_0_110~486^2~900 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=e5b8ccd9f12bf8a66699f635757e42daa21ba841;p=fs%2Flustre-release.git Branch: b_new_cmd put the iam_it anyway --- diff --git a/lustre/mdd/mdd_orphans.c b/lustre/mdd/mdd_orphans.c index 4f35c92..5209cc7 100644 --- a/lustre/mdd/mdd_orphans.c +++ b/lustre/mdd/mdd_orphans.c @@ -154,10 +154,11 @@ static int orph_index_iterate(const struct lu_context *ctx, orph_key_test_and_del(ctx, mdd, key); result = iops->next(ctx, it); } - iops->put(ctx, it); - } else if (result == 0) + } else if (result == 0) /* Index contains no zero key? */ result = -EIO; + + iops->put(ctx, it); iops->fini(ctx, it); } else result = -ENOMEM;