Whamcloud - gitweb
mdd_lookup(): use mdd_dt_lookup()
authornikita <nikita>
Wed, 17 May 2006 22:05:25 +0000 (22:05 +0000)
committernikita <nikita>
Wed, 17 May 2006 22:05:25 +0000 (22:05 +0000)
lustre/mdd/mdd_handler.c

index 8488179..5c1ff99 100644 (file)
@@ -753,9 +753,7 @@ cleanup:
 static int mdd_lookup(struct lu_context *ctxt, struct md_object *pobj,
                       const char *name, struct lu_fid* fid)
 {
-        struct dt_object *next = mdd_object_child(mdo2mddo(pobj));
-      
-        return next->do_index_ops->dio_lookup(ctxt, next, fid, name);
+        return mdd_dt_lookup(ctxt, mdo2mdd(pobj), mdo2mddo(pobj), name, fid);
 }
 
 static int mdd_mkdir(struct lu_context *ctxt, struct lu_attr* attr,