diff options
author | Mike Rapoport <mike.rapoport@gmail.com> | 2015-10-26 10:06:29 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-27 14:35:29 +0900 |
commit | 0c52e4232f292667e1ebb16c4dfd46975d8d48d1 (patch) | |
tree | 3216e9315905439e387d4a706c325d6ed32b3887 /drivers | |
parent | 2a96be0d46825689ac9b6078056e523ba96acec4 (diff) | |
download | linux-0c52e4232f292667e1ebb16c4dfd46975d8d48d1.tar.bz2 |
staging: lustre: get rid of OBD_PAGE_ALLOC/FREE
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/lustre/lustre/obdecho/echo_client.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/lustre/lustre/obdecho/echo_client.c b/drivers/staging/lustre/lustre/obdecho/echo_client.c index 6751382ce338..b6f000bb8c82 100644 --- a/drivers/staging/lustre/lustre/obdecho/echo_client.c +++ b/drivers/staging/lustre/lustre/obdecho/echo_client.c @@ -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); |