Whamcloud - gitweb
LU-13134 clio: cl_page index compaction
[fs/lustre-release.git] / lustre / include / lustre_osc.h
index 6601a19..6995aec 100644 (file)
@@ -822,7 +822,7 @@ static inline struct osc_page *oap2osc(struct osc_async_page *oap)
 
 static inline pgoff_t osc_index(struct osc_page *opg)
 {
-       return opg->ops_cl.cpl_index;
+       return opg->ops_cl.cpl_page->cp_osc_index;
 }
 
 static inline struct cl_page *oap2cl_page(struct osc_async_page *oap)