Whamcloud - gitweb
Helper routine for passing OBD handles around.
authoradilger <adilger>
Wed, 2 Oct 2002 19:54:11 +0000 (19:54 +0000)
committeradilger <adilger>
Wed, 2 Oct 2002 19:54:11 +0000 (19:54 +0000)
lustre/include/linux/obd_class.h

index 0a75ed7..6c0844d 100644 (file)
@@ -442,11 +442,10 @@ static inline int obd_cancel_unused(struct lustre_handle *conn,
 extern int obd_init_caches(void);
 extern void obd_cleanup_caches(void);
 
-static inline int obdo_has_inline(struct obdo *obdo)
+static inline struct lustre_handle *obd_oa2handle(struct obdo *oa)
 {
-        return (obdo->o_valid & OBD_MD_FLINLINE &&
-                obdo->o_obdflags & OBD_FL_INLINEDATA);
-};
+        return (struct lustre_handle *)&oa->o_inline;
+}
 
 #ifdef __KERNEL__
 /* support routines */