dm: use __GFP_HIGHMEM in __vmalloc
authorMikulas Patocka <mpatocka@redhat.com>
Wed, 10 Jul 2013 22:41:16 +0000 (23:41 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Wed, 10 Jul 2013 22:41:16 +0000 (23:41 +0100)
commit220cd058d9b66b940105e0a32324f06d557deba7
treeaa6a9ca04528df50e3af0782458ac3bf4648f6a4
parentb1bf2de07271932326af847a3c6a01fdfd29d4be
dm: use __GFP_HIGHMEM in __vmalloc

Use __GFP_HIGHMEM in __vmalloc.

Pages allocated with __vmalloc can be allocated in high memory that is not
directly mapped to kernel space, so use __GFP_HIGHMEM just like vmalloc
does. This patch reduces memory pressure slightly because pages can be
allocated in the high zone.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-bufio.c
drivers/md/dm-ioctl.c