From e5b8ccd9f12bf8a66699f635757e42daa21ba841 Mon Sep 17 00:00:00 2001 From: wangdi Date: Tue, 19 Sep 2006 16:12:57 +0000 Subject: [PATCH] Branch: b_new_cmd put the iam_it anyway --- lustre/mdd/mdd_orphans.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; -- 1.8.3.1