X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fobdclass%2Fcl_page.c;h=7a646e0af35ed5cbe5050cbc3b0c9fc590a21ec9;hb=3d52a7c5753e80e78c3b6f6bb7a0b66b37f4849b;hp=b573e8da3a1a360f64edb0b858f25bd16d58386c;hpb=6060ee55b194e37e87031c40e9d48f967eabe314;p=fs%2Flustre-release.git diff --git a/lustre/obdclass/cl_page.c b/lustre/obdclass/cl_page.c index b573e8d..7a646e0 100644 --- a/lustre/obdclass/cl_page.c +++ b/lustre/obdclass/cl_page.c @@ -880,55 +880,6 @@ void cl_page_delete(const struct lu_env *env, struct cl_page *pg) } EXPORT_SYMBOL(cl_page_delete); -/** - * Marks page up-to-date. - * - * Call cl_page_operations::cpo_export() through all layers top-to-bottom. The - * layer responsible for VM interaction has to mark/clear page as up-to-date - * by the \a uptodate argument. - * - * \see cl_page_operations::cpo_export() - */ -void cl_page_export(const struct lu_env *env, struct cl_page *cl_page, - int uptodate) -{ - const struct cl_page_slice *slice; - int i; - - PINVRNT(env, cl_page, cl_page_invariant(cl_page)); - - cl_page_slice_for_each(cl_page, slice, i) { - if (slice->cpl_ops->cpo_export != NULL) - (*slice->cpl_ops->cpo_export)(env, slice, uptodate); - } -} -EXPORT_SYMBOL(cl_page_export); - -/** - * Returns true, if \a page is VM locked in a suitable sense by the calling - * thread. - */ -int cl_page_is_vmlocked(const struct lu_env *env, - const struct cl_page *cl_page) -{ - const struct cl_page_slice *slice; - int result; - - ENTRY; - slice = cl_page_slice_get(cl_page, 0); - PASSERT(env, cl_page, slice->cpl_ops->cpo_is_vmlocked != NULL); - /* - * Call ->cpo_is_vmlocked() directly instead of going through - * CL_PAGE_INVOKE(), because cl_page_is_vmlocked() is used by - * cl_page_invariant(). - */ - result = slice->cpl_ops->cpo_is_vmlocked(env, slice); - PASSERT(env, cl_page, result == -EBUSY || result == -ENODATA); - - RETURN(result == -EBUSY); -} -EXPORT_SYMBOL(cl_page_is_vmlocked); - void cl_page_touch(const struct lu_env *env, const struct cl_page *cl_page, size_t to) {