From: tianzy Date: Wed, 13 Feb 2008 11:51:34 +0000 (+0000) Subject: Branch b1_6 X-Git-Tag: v1_8_0_110~776 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=84ccd95b94e54a9405856a65e6eaf634a9fa78c8;p=fs%2Flustre-release.git Branch b1_6 Reset error code if we are retrying to insert the qdata into the hashtable to avoid later assertion. b=14785 i=johann i=andrew.perepechko --- diff --git a/lustre/quota/quota_context.c b/lustre/quota/quota_context.c index e5e12f6..74fd0f0 100644 --- a/lustre/quota/quota_context.c +++ b/lustre/quota/quota_context.c @@ -201,8 +201,10 @@ check_cur_qunit(struct obd_device *obd, if (!lqs) { CDEBUG(D_QUOTA, "Can't find the lustre qunit size!\n"); ret = quota_create_lqs(qdata, NULL, qctxt, &lqs); - if (ret == -EALREADY) + if (ret == -EALREADY) { + ret = 0; goto search_lqs; + } if (ret < 0) GOTO (out, ret); }