Whamcloud - gitweb
- define lu_object_attr() to get common object attribute
authortappro <tappro>
Sat, 5 Aug 2006 18:55:10 +0000 (18:55 +0000)
committertappro <tappro>
Sat, 5 Aug 2006 18:55:10 +0000 (18:55 +0000)
lustre/include/lu_object.h

index 530f5c1..3a622ad 100644 (file)
@@ -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 *