From: tappro Date: Sat, 5 Aug 2006 18:55:10 +0000 (+0000) Subject: - define lu_object_attr() to get common object attribute X-Git-Tag: v1_8_0_110~486^2~1259 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=4435477edc371e36ae2b30216461c446cdd5008d;p=fs%2Flustre-release.git - define lu_object_attr() to get common object attribute --- 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 *