From 7103bdbd4f1d4f2abfbf3197ccd8d51eef553995 Mon Sep 17 00:00:00 2001 From: yury Date: Tue, 25 Apr 2006 08:28:21 +0000 Subject: [PATCH] - fix in lmv_intent_lock() --- lustre/lmv/lmv_intent.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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", -- 1.8.3.1