Whamcloud - gitweb
remove duplicate
authortappro <tappro>
Mon, 17 Apr 2006 10:32:59 +0000 (10:32 +0000)
committertappro <tappro>
Mon, 17 Apr 2006 10:32:59 +0000 (10:32 +0000)
lustre/mdt/mdt_handler.c
lustre/mdt/mdt_internal.h

index 70ebd3c..5e96ab8 100644 (file)
@@ -1390,7 +1390,7 @@ static int mdt_object_init(struct lu_context *ctxt, struct lu_object *o)
 
 static void mdt_object_free(struct lu_context *ctxt, struct lu_object *o)
 {
-        struct mdt_object *mo = lu2mdt_obj(o);
+        struct mdt_object *mo = mdt_obj(o);
         struct lu_object_header *h;
 
         h = o->lo_header;
index f1d72ca..d0491ed 100644 (file)
@@ -105,11 +105,6 @@ static inline struct md_object *mdt_object_child(struct mdt_object *o)
         return lu2md(lu_object_next(&o->mot_obj.mo_lu));
 }
 
-static inline struct mdt_object *lu2mdt_obj(struct lu_object *o)
-{
-        return (container_of(lu2md(o),struct mdt_object, mot_obj));
-}
-
 struct mdt_lock_handle {
         struct lustre_handle    mlh_lh;
         ldlm_mode_t             mlh_mode;