OSDN Git Service

staging: lustre: get rid of OBD_PAGE_ALLOC/FREE
authorMike Rapoport <mike.rapoport@gmail.com>
Mon, 26 Oct 2015 08:06:29 +0000 (10:06 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Oct 2015 05:35:29 +0000 (14:35 +0900)
Use alloc_page and __free_page instead

Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/obdecho/echo_client.c

index 6751382..b6f000b 100644 (file)
@@ -1595,7 +1595,7 @@ static int echo_client_kbrw(struct echo_device *ed, int rw, struct obdo *oa,
                LASSERT(pgp->pg == NULL);      /* for cleanup */
 
                rc = -ENOMEM;
-               OBD_PAGE_ALLOC(pgp->pg, gfp_mask);
+               pgp->pg = alloc_page(gfp_mask);
                if (pgp->pg == NULL)
                        goto out;
 
@@ -1631,7 +1631,7 @@ static int echo_client_kbrw(struct echo_device *ed, int rw, struct obdo *oa,
                        if (vrc != 0 && rc == 0)
                                rc = vrc;
                }
-               OBD_PAGE_FREE(pgp->pg);
+               __free_page(pgp->pg);
        }
        kfree(pga);
        kfree(pages);