Whamcloud - gitweb
b=14957
[fs/lustre-release.git] / lustre / include / lu_object.h
index 9c070e6..fd26c3d 100644 (file)
@@ -369,13 +369,13 @@ struct lu_attr {
         __u32          la_flags;  /* object flags */
         __u32          la_nlink;  /* number of persistent references to this
                                    * object */
+        __u32          la_blkbits; /* blk bits of the object*/
         __u32          la_blksize; /* blk size of the object*/
 
         __u32          la_rdev;   /* real device */
         __u64          la_valid;  /* valid bits */
 };
 
-
 /*
  * Layer in the layered object.
  */
@@ -846,6 +846,14 @@ enum lu_xattr_flags {
         LU_XATTR_CREATE  = (1 << 1)
 };
 
+/* For lu_context health-checks */
+enum lu_context_state {
+        LCS_INITIALIZED = 1,
+        LCS_ENTERED,
+        LCS_LEFT,
+        LCS_FINALIZED
+};
+
 /*
  * lu_context. Execution context for lu_object methods. Currently associated
  * with thread.
@@ -886,6 +894,7 @@ struct lu_context {
          * detail.
          */
         void                 **lc_value;
+        enum lu_context_state  lc_state;
 };
 
 /*