Whamcloud - gitweb
LU-5552 llite: make sure we do cl_page_clip on the last page
[fs/lustre-release.git] / lustre / llite / vvp_internal.h
index 63172d3..334b5b6 100644 (file)
@@ -41,9 +41,6 @@
 #ifndef VVP_INTERNAL_H
 #define VVP_INTERNAL_H
 
-#ifndef __KERNEL__
-# error This file is kernel only.
-#endif
 
 #include <cl_object.h>
 #include "llite_internal.h"
@@ -53,12 +50,12 @@ int vvp_io_init(const struct lu_env *env, struct cl_object *obj,
 int vvp_lock_init(const struct lu_env *env, struct cl_object *obj,
                  struct cl_lock *lock, const struct cl_io *io);
 int vvp_page_init(const struct lu_env *env, struct cl_object *obj,
-                 struct cl_page *page, struct page *vmpage);
+                 struct cl_page *page, pgoff_t index);
 struct lu_object *vvp_object_alloc(const struct lu_env *env,
                                   const struct lu_object_header *hdr,
                                   struct lu_device *dev);
 struct ccc_object *cl_inode2ccc(struct inode *inode);
 
-extern struct kmem_cache *vvp_thread_kmem;
+extern const struct file_operations vvp_dump_pgcache_file_ops;
 
 #endif /* VVP_INTERNAL_H */