From: yury Date: Tue, 25 Apr 2006 08:28:21 +0000 (+0000) Subject: - fix in lmv_intent_lock() X-Git-Tag: v1_8_0_110~486^2~1935 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=7103bdbd4f1d4f2abfbf3197ccd8d51eef553995;p=fs%2Flustre-release.git - fix in lmv_intent_lock() --- diff --git a/lustre/lmv/lmv_intent.c b/lustre/lmv/lmv_intent.c index a0f31dc..a1730a3 100644 --- a/lustre/lmv/lmv_intent.c +++ b/lustre/lmv/lmv_intent.c @@ -635,8 +635,8 @@ int lmv_intent_lock(struct obd_export *exp, struct md_op_data *op_data, LASSERT(it); - pid = &op_data->fid1; - cid = &op_data->fid2; + pid = fid_num(&op_data->fid1) != 0 ? &op_data->fid1 : NULL; + cid = fid_num(&op_data->fid2) != 0 ? &op_data->fid2 : NULL; i = lmv_fld_lookup(obd, pid); CDEBUG(D_OTHER, "INTENT LOCK '%s' for '%*s' on "DFID3" -> %d\n",