* [PATCH] dm-kcopyd: Introduce gfp flags for alloc_pl
@ 2011-05-25 16:47 Mikulas Patocka
2011-05-25 17:50 ` Joe Thornber
0 siblings, 1 reply; 2+ messages in thread
From: Mikulas Patocka @ 2011-05-25 16:47 UTC (permalink / raw)
To: dm-devel, Alasdair G. Kergon
dm-kcopyd: Introduce gfp flags for alloc_pl
It will be used in further patches.
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
---
drivers/md/dm-kcopyd.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
Index: linux-2.6.39-fast/drivers/md/dm-kcopyd.c
===================================================================
--- linux-2.6.39-fast.orig/drivers/md/dm-kcopyd.c 2011-05-24 22:14:45.000000000 +0200
+++ linux-2.6.39-fast/drivers/md/dm-kcopyd.c 2011-05-25 13:19:02.000000000 +0200
@@ -70,15 +70,15 @@ static void wake(struct dm_kcopyd_client
queue_work(kc->kcopyd_wq, &kc->kcopyd_work);
}
-static struct page_list *alloc_pl(void)
+static struct page_list *alloc_pl(gfp_t gfp)
{
struct page_list *pl;
- pl = kmalloc(sizeof(*pl), GFP_KERNEL);
+ pl = kmalloc(sizeof(*pl), gfp);
if (!pl)
return NULL;
- pl->page = alloc_page(GFP_KERNEL);
+ pl->page = alloc_page(gfp);
if (!pl->page) {
kfree(pl);
return NULL;
@@ -143,7 +143,7 @@ static int client_alloc_pages(struct dm_
struct page_list *pl = NULL, *next;
for (i = 0; i < nr; i++) {
- next = alloc_pl();
+ next = alloc_pl(GFP_KERNEL);
if (!next) {
if (pl)
drop_pages(pl);
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] dm-kcopyd: Introduce gfp flags for alloc_pl
2011-05-25 16:47 [PATCH] dm-kcopyd: Introduce gfp flags for alloc_pl Mikulas Patocka
@ 2011-05-25 17:50 ` Joe Thornber
0 siblings, 0 replies; 2+ messages in thread
From: Joe Thornber @ 2011-05-25 17:50 UTC (permalink / raw)
To: device-mapper development; +Cc: Alasdair G. Kergon
Thanks Mikulas,
I've reviewed and tested these 4 patches.
- Joe
On Wed, 2011-05-25 at 12:47 -0400, Mikulas Patocka wrote:
> dm-kcopyd: Introduce gfp flags for alloc_pl
>
> It will be used in further patches.
>
> Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-05-25 17:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-25 16:47 [PATCH] dm-kcopyd: Introduce gfp flags for alloc_pl Mikulas Patocka
2011-05-25 17:50 ` Joe Thornber
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.