From 4435477edc371e36ae2b30216461c446cdd5008d Mon Sep 17 00:00:00 2001 From: tappro Date: Sat, 5 Aug 2006 18:55:10 +0000 Subject: [PATCH] - define lu_object_attr() to get common object attribute --- lustre/include/lu_object.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lustre/include/lu_object.h b/lustre/include/lu_object.h index 530f5c1..3a622ad 100644 --- 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 * -- 1.8.3.1