linux/drivers/block
Michal Hocko 19809c2da2 mm, vmalloc: use __GFP_HIGHMEM implicitly
__vmalloc* allows users to provide gfp flags for the underlying
allocation.  This API is quite popular

  $ git grep "=[[:space:]]__vmalloc\|return[[:space:]]*__vmalloc" | wc -l
  77

The only problem is that many people are not aware that they really want
to give __GFP_HIGHMEM along with other flags because there is really no
reason to consume precious lowmemory on CONFIG_HIGHMEM systems for pages
which are mapped to the kernel vmalloc space.  About half of users don't
use this flag, though.  This signals that we make the API unnecessarily
too complex.

This patch simply uses __GFP_HIGHMEM implicitly when allocating pages to
be mapped to the vmalloc space.  Current users which add __GFP_HIGHMEM
are simplified and drop the flag.

Link: http://lkml.kernel.org/r/20170307141020.29107-1-mhocko@kernel.org
Signed-off-by: Michal Hocko <mhocko@suse.com>
Reviewed-by: Matthew Wilcox <mawilcox@microsoft.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: David Rientjes <rientjes@google.com>
Cc: Cristopher Lameter <cl@linux.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2017-05-08 17:15:13 -07:00
..
aoe
drbd mm, vmalloc: use __GFP_HIGHMEM implicitly 2017-05-08 17:15:13 -07:00
mtip32xx mtip32xx: convert internal commands to regular block infrastructure 2017-05-03 08:09:19 -06:00
paride
rsxx
xen-blkback
zram zram: reduce load operation in page_same_filled 2017-05-03 15:52:11 -07:00
amiflop.c
ataflop.c
brd.c libnvdimm for 4.12 2017-05-05 18:49:20 -07:00
cciss_cmd.h
cciss_scsi.c
cciss_scsi.h
cciss.c
cciss.h
cryptoloop.c
DAC960.c
DAC960.h
floppy.c
Kconfig libnvdimm for 4.12 2017-05-05 18:49:20 -07:00
loop.c blk-mq: update ->init_request and ->exit_request prototypes 2017-05-02 07:52:08 -06:00
loop.h
Makefile
nbd.c Merge branch 'for-linus' of git://git.kernel.dk/linux-block 2017-05-06 11:25:08 -07:00
null_blk.c
pktcdvd.c
ps3disk.c
ps3vram.c
rbd_types.h
rbd.c blk-mq: update ->init_request and ->exit_request prototypes 2017-05-02 07:52:08 -06:00
skd_main.c
skd_s1120.h
smart1,2.h
sunvdc.c
swim3.c
swim_asm.S
swim.c
sx8.c
umem.c
umem.h
virtio_blk.c blk-mq: update ->init_request and ->exit_request prototypes 2017-05-02 07:52:08 -06:00
xen-blkfront.c
xsysace.c
z2ram.c