1
0
Fork 0

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>
hifive-unleashed-5.1
Mike Rapoport 2015-10-26 10:06:29 +02:00 committed by Greg Kroah-Hartman
parent 2a96be0d46
commit 0c52e4232f
1 changed files with 2 additions and 2 deletions

View 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);