]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
mm, page_alloc: rename __GFP_WAIT to __GFP_RECLAIM
authorMel Gorman <mgorman@techsingularity.net>
Sat, 7 Nov 2015 00:28:28 +0000 (16:28 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 7 Nov 2015 01:50:42 +0000 (17:50 -0800)
commit71baba4b92dc1fa1bc461742c6ab1942ec6034e9
tree48c361ba0cc06890703bee1464a9349519118330
parent40113370836e8e79befa585277296ed42781ef31
mm, page_alloc: rename __GFP_WAIT to __GFP_RECLAIM

__GFP_WAIT was used to signal that the caller was in atomic context and
could not sleep.  Now it is possible to distinguish between true atomic
context and callers that are not willing to sleep.  The latter should
clear __GFP_DIRECT_RECLAIM so kswapd will still wake.  As clearing
__GFP_WAIT behaves differently, there is a risk that people will clear the
wrong flags.  This patch renames __GFP_WAIT to __GFP_RECLAIM to clearly
indicate what it does -- setting it allows all reclaim activity, clearing
them prevents it.

[akpm@linux-foundation.org: fix build]
[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Mel Gorman <mgorman@techsingularity.net>
Acked-by: Michal Hocko <mhocko@suse.com>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Cc: Christoph Lameter <cl@linux.com>
Acked-by: David Rientjes <rientjes@google.com>
Cc: Vitaly Wool <vitalywool@gmail.com>
Cc: Rik van Riel <riel@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
38 files changed:
block/blk-core.c
block/blk-mq.c
block/scsi_ioctl.c
drivers/block/drbd/drbd_bitmap.c
drivers/block/mtip32xx/mtip32xx.c
drivers/block/paride/pd.c
drivers/block/pktcdvd.c
drivers/gpu/drm/i915/i915_gem.c
drivers/ide/ide-atapi.c
drivers/ide/ide-cd.c
drivers/ide/ide-cd_ioctl.c
drivers/ide/ide-devsets.c
drivers/ide/ide-disk.c
drivers/ide/ide-ioctls.c
drivers/ide/ide-park.c
drivers/ide/ide-pm.c
drivers/ide/ide-tape.c
drivers/ide/ide-taskfile.c
drivers/infiniband/hw/qib/qib_init.c
drivers/misc/vmw_balloon.c
drivers/nvme/host/pci.c
drivers/scsi/scsi_error.c
drivers/scsi/scsi_lib.c
drivers/staging/rdma/hfi1/init.c
drivers/staging/rdma/ipath/ipath_file_ops.c
fs/cachefiles/internal.h
fs/direct-io.c
fs/nilfs2/mdt.h
include/linux/gfp.h
kernel/power/swap.c
lib/percpu_ida.c
mm/failslab.c
mm/filemap.c
mm/huge_memory.c
mm/memcontrol.c
mm/migrate.c
mm/page_alloc.c
security/integrity/ima/ima_crypto.c