Skip to content

Commit 949d49e

Browse files
Mikulas PatockaMike Snitzer
authored andcommitted
dm kcopyd: use __GFP_HIGHMEM when allocating pages
dm-kcopyd doesn't access the allocated pages directly, it only passes them to dm-io which adds them to a bio list - thus, we can allocate the pages from high memory. This will reduce pressure on the low memory when there are a large number of kcopyd jobs in progress. Signed-off-by: Mikulas Patocka <[email protected]> Signed-off-by: Mike Snitzer <[email protected]>
1 parent ca7dc24 commit 949d49e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/md/dm-kcopyd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ static struct page_list *alloc_pl(gfp_t gfp)
219219
if (!pl)
220220
return NULL;
221221

222-
pl->page = alloc_page(gfp);
222+
pl->page = alloc_page(gfp | __GFP_HIGHMEM);
223223
if (!pl->page) {
224224
kfree(pl);
225225
return NULL;

0 commit comments

Comments
 (0)