diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/md/dm-kcopyd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/md/dm-kcopyd.c b/drivers/md/dm-kcopyd.c index ed9577916399..0270844c2a3d 100644 --- a/drivers/md/dm-kcopyd.c +++ b/drivers/md/dm-kcopyd.c | |||
@@ -70,15 +70,15 @@ static void wake(struct dm_kcopyd_client *kc) | |||
70 | queue_work(kc->kcopyd_wq, &kc->kcopyd_work); | 70 | queue_work(kc->kcopyd_wq, &kc->kcopyd_work); |
71 | } | 71 | } |
72 | 72 | ||
73 | static struct page_list *alloc_pl(void) | 73 | static struct page_list *alloc_pl(gfp_t gfp) |
74 | { | 74 | { |
75 | struct page_list *pl; | 75 | struct page_list *pl; |
76 | 76 | ||
77 | pl = kmalloc(sizeof(*pl), GFP_KERNEL); | 77 | pl = kmalloc(sizeof(*pl), gfp); |
78 | if (!pl) | 78 | if (!pl) |
79 | return NULL; | 79 | return NULL; |
80 | 80 | ||
81 | pl->page = alloc_page(GFP_KERNEL); | 81 | pl->page = alloc_page(gfp); |
82 | if (!pl->page) { | 82 | if (!pl->page) { |
83 | kfree(pl); | 83 | kfree(pl); |
84 | return NULL; | 84 | return NULL; |
@@ -143,7 +143,7 @@ static int client_alloc_pages(struct dm_kcopyd_client *kc, unsigned int nr) | |||
143 | struct page_list *pl = NULL, *next; | 143 | struct page_list *pl = NULL, *next; |
144 | 144 | ||
145 | for (i = 0; i < nr; i++) { | 145 | for (i = 0; i < nr; i++) { |
146 | next = alloc_pl(); | 146 | next = alloc_pl(GFP_KERNEL); |
147 | if (!next) { | 147 | if (!next) { |
148 | if (pl) | 148 | if (pl) |
149 | drop_pages(pl); | 149 | drop_pages(pl); |