Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 252801
b: refs/heads/master
c: f99b55e
h: refs/heads/master
i:
  252799: fe87ed7
v: v3
  • Loading branch information
Mikulas Patocka authored and Alasdair G Kergon committed May 29, 2011
1 parent 9820903 commit 95e39e9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4cc1b4cffd187a5c5d6264c8d766c49b3c57fb05
refs/heads/master: f99b55eec795bd0fd577ab3ca06f3acfbe3b1ab1
8 changes: 4 additions & 4 deletions trunk/drivers/md/dm-kcopyd.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,15 @@ static void wake(struct dm_kcopyd_client *kc)
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;
Expand Down Expand Up @@ -143,7 +143,7 @@ static int client_alloc_pages(struct dm_kcopyd_client *kc, unsigned int nr)
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);
Expand Down

0 comments on commit 95e39e9

Please sign in to comment.