Whamcloud - gitweb
LU-9409 llite: Add tiny write support
[fs/lustre-release.git] / lustre / obdclass / cl_page.c
index 10c3fed..301af05 100644 (file)
@@ -804,6 +804,22 @@ int cl_page_is_vmlocked(const struct lu_env *env, const struct cl_page *pg)
 }
 EXPORT_SYMBOL(cl_page_is_vmlocked);
 
+void cl_page_touch(const struct lu_env *env, const struct cl_page *pg,
+                 size_t to)
+{
+       const struct cl_page_slice *slice;
+
+       ENTRY;
+
+       list_for_each_entry(slice, &pg->cp_layers, cpl_linkage) {
+               if (slice->cpl_ops->cpo_page_touch != NULL)
+                       (*slice->cpl_ops->cpo_page_touch)(env, slice, to);
+       }
+
+       EXIT;
+}
+EXPORT_SYMBOL(cl_page_touch);
+
 static enum cl_page_state cl_req_type_state(enum cl_req_type crt)
 {
         ENTRY;