X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fllite%2Fvvp_internal.h;h=40648c4730788c70c5521099f618b7b8fa9d2f36;hb=refs%2Fchanges%2F70%2F51670%2F5;hp=76085ceff333270d0c7e7a0e8d2a349621f6aed9;hpb=3f0bee2502da5a0ded8a930c5cb74f9f3312b744;p=fs%2Flustre-release.git diff --git a/lustre/llite/vvp_internal.h b/lustre/llite/vvp_internal.h index 76085ce..40648c4 100644 --- a/lustre/llite/vvp_internal.h +++ b/lustre/llite/vvp_internal.h @@ -208,23 +208,8 @@ struct vvp_object { }; /** - * VVP-private page state. + * There is no VVP-private page state. */ -struct vvp_page { - struct cl_page_slice vpg_cl; - /** VM page */ - struct page *vpg_page; -}; - -static inline struct vvp_page *cl2vvp_page(const struct cl_page_slice *slice) -{ - return container_of(slice, struct vvp_page, vpg_cl); -} - -static inline pgoff_t vvp_index(struct vvp_page *vpg) -{ - return vpg->vpg_page->index; -} struct vvp_device { struct cl_device vdv_cl; @@ -264,11 +249,6 @@ static inline struct inode *vvp_object_inode(const struct cl_object *obj) int vvp_object_invariant(const struct cl_object *obj); struct vvp_object *cl_inode2vvp(struct inode *inode); -static inline struct page *cl2vm_page(const struct cl_page_slice *slice) -{ - return cl2vvp_page(slice)->vpg_page; -} - #ifdef CONFIG_LUSTRE_DEBUG_EXPENSIVE_CHECK # define CLOBINVRNT(env, clob, expr) \ do { \