Whamcloud - gitweb
LU-3963 libcfs: remove last cfs wrappers for cpu node handling
[fs/lustre-release.git] / lustre / llite / vvp_page.c
index 3b349f4..d031f8b 100644 (file)
@@ -41,9 +41,6 @@
 
 #define DEBUG_SUBSYSTEM S_LLITE
 
-#ifndef __KERNEL__
-# error This file is kernel only.
-#endif
 
 #include <obd.h>
 #include <lustre_lite.h>
@@ -540,7 +537,7 @@ int vvp_page_init(const struct lu_env *env, struct cl_object *obj,
        cpg->cpg_page = vmpage;
        page_cache_get(vmpage);
 
-       CFS_INIT_LIST_HEAD(&cpg->cpg_pending_linkage);
+       INIT_LIST_HEAD(&cpg->cpg_pending_linkage);
        if (page->cp_type == CPT_CACHEABLE) {
                /* in cache, decref in vvp_page_delete */
                atomic_inc(&page->cp_ref);