Whamcloud - gitweb
Branch HEAD
[fs/lustre-release.git] / lustre / mds / handler.c
index 571d85b..76821e4 100644 (file)
@@ -93,7 +93,7 @@ static int mds_sendpage(struct ptlrpc_request *req, struct file *file,
         for (i = 0, tmpcount = count; i < npages; i++, tmpcount -= tmpsize) {
                 tmpsize = tmpcount > CFS_PAGE_SIZE ? CFS_PAGE_SIZE : tmpcount;
 
-                pages[i] = cfs_alloc_page(CFS_ALLOC_STD);
+                OBD_PAGE_ALLOC(pages[i], CFS_ALLOC_STD);
                 if (pages[i] == NULL)
                         GOTO(cleanup_buf, rc = -ENOMEM);
 
@@ -152,7 +152,7 @@ static int mds_sendpage(struct ptlrpc_request *req, struct file *file,
  cleanup_buf:
         for (i = 0; i < npages; i++)
                 if (pages[i])
-                        __cfs_free_page(pages[i]);
+                        OBD_PAGE_FREE(pages[i]);
 
         ptlrpc_free_bulk(desc);
  out_free: