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:
93ed335
)
- define lu_object_attr() to get common object attribute
author
tappro
<tappro>
Sat, 5 Aug 2006 18:55:10 +0000
(18:55 +0000)
committer
tappro
<tappro>
Sat, 5 Aug 2006 18:55:10 +0000
(18:55 +0000)
lustre/include/lu_object.h
patch
|
blob
|
history
diff --git
a/lustre/include/lu_object.h
b/lustre/include/lu_object.h
index
530f5c1
..
3a622ad
100644
(file)
--- a/
lustre/include/lu_object.h
+++ b/
lustre/include/lu_object.h
@@
-706,6
+706,14
@@
static inline const struct lu_fid *lu_object_fid(const struct lu_object *o)
}
/*
+ * Attr of this object.
+ */
+static inline const __u32 lu_object_attr(const struct lu_object *o)
+{
+ return o->lo_header->loh_attr;
+}
+
+/*
* return device operations vector for this object
*/
static inline struct lu_device_operations *