Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b8bf89
)
Helper routine for passing OBD handles around.
author
adilger
<adilger>
Wed, 2 Oct 2002 19:54:11 +0000
(19:54 +0000)
committer
adilger
<adilger>
Wed, 2 Oct 2002 19:54:11 +0000
(19:54 +0000)
lustre/include/linux/obd_class.h
patch
|
blob
|
history
diff --git
a/lustre/include/linux/obd_class.h
b/lustre/include/linux/obd_class.h
index
0a75ed7
..
6c0844d
100644
(file)
--- a/
lustre/include/linux/obd_class.h
+++ b/
lustre/include/linux/obd_class.h
@@
-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 */