Whamcloud - gitweb
LU-12535 lov: Move page index to top level
[fs/lustre-release.git] / lustre / lov / lov_cl_internal.h
index 179e450..b811451 100644 (file)
@@ -150,9 +150,10 @@ static inline char *llt2str(enum lov_layout_type llt)
  */
 static inline __u32 lov_entry_type(struct lov_stripe_md_entry *lsme)
 {
-       if ((lov_pattern(lsme->lsme_pattern) == LOV_PATTERN_RAID0) ||
+       if ((lov_pattern(lsme->lsme_pattern) & LOV_PATTERN_RAID0) ||
            (lov_pattern(lsme->lsme_pattern) == LOV_PATTERN_MDT))
-               return lov_pattern(lsme->lsme_pattern);
+               return lov_pattern(lsme->lsme_pattern &
+                                  ~LOV_PATTERN_OVERSTRIPING);
        return 0;
 }
 
@@ -436,8 +437,6 @@ struct lov_lock {
 
 struct lov_page {
        struct cl_page_slice    lps_cl;
-       /** layout_entry + stripe index, composed using lov_comp_index() */
-       unsigned int            lps_index;
        /* the layout gen when this page was created */
        __u32                   lps_layout_gen;
 };
@@ -505,7 +504,6 @@ struct lov_io_sub {
         * \see cl_env_get()
         */
        __u16                   sub_refcheck;
-       __u16                   sub_reenter;
 };
 
 /**