Whamcloud - gitweb
Branch: b_new_cmd
authorwangdi <wangdi>
Mon, 31 Jul 2006 19:10:00 +0000 (19:10 +0000)
committerwangdi <wangdi>
Mon, 31 Jul 2006 19:10:00 +0000 (19:10 +0000)
fix stupid type in mdd_rename_unlock

lustre/mdd/mdd_handler.c

index 47f3295..464a207 100644 (file)
@@ -787,7 +787,7 @@ static void mdd_rename_unlock(const struct lu_context *ctxt,
 {
         mdd_unlock(ctxt, src_pobj, DT_WRITE_LOCK);
         if (src_pobj != tgt_pobj)
-                mdd_unlock(ctxt, src_pobj, DT_WRITE_LOCK);
+                mdd_unlock(ctxt, tgt_pobj, DT_WRITE_LOCK);
 }
 
 static int mdd_rename(const struct lu_context *ctxt, struct md_object *src_pobj,