From 6e30b8efd8d8af6fead6111a0f811d435acb8e1e Mon Sep 17 00:00:00 2001 From: huanghua Date: Thu, 2 Nov 2006 05:24:13 +0000 Subject: [PATCH] fix a typo which makes cross link() fail. --- lustre/mdd/mdd_object.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lustre/mdd/mdd_object.c b/lustre/mdd/mdd_object.c index b419783..e0490e3 100644 --- a/lustre/mdd/mdd_object.c +++ b/lustre/mdd/mdd_object.c @@ -1038,13 +1038,13 @@ static int mdd_ref_add(const struct lu_env *env, mdd_write_lock(env, mdd_obj); rc = mdd_link_sanity_check(env, NULL, mdd_obj); - if (!rc) + if (rc == 0) mdd_ref_add_internal(env, mdd_obj, handle); mdd_write_unlock(env, mdd_obj); mdd_trans_stop(env, mdd, 0, handle); - RETURN(0); + RETURN(rc); } /* do NOT or the MAY_*'s, you'll get the weakest */ -- 1.8.3.1