Whamcloud - gitweb
LU-12535 lov: Move page index to top level
[fs/lustre-release.git] / lustre / include / cl_object.h
index 0524f34..695e87b 100644 (file)
@@ -763,6 +763,8 @@ struct cl_page {
        struct lu_ref_link       cp_queue_ref;
        /** Assigned if doing a sync_io */
        struct cl_sync_io       *cp_sync_io;
+       /** layout_entry + stripe index, composed using lov_comp_index() */
+       unsigned int            cp_lov_index;
 };
 
 /**
@@ -1484,6 +1486,8 @@ struct cl_read_ahead {
        void    (*cra_release)(const struct lu_env *env, void *cbdata);
        /* Callback data for cra_release routine */
        void    *cra_cbdata;
+       /* whether lock is in contention */
+       bool    cra_contention;
 };
 
 static inline void cl_read_ahead_release(const struct lu_env *env,