]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm, fs: introduce mapping_gfp_constraint()
authorMichal Hocko <mhocko@suse.com>
Wed, 21 Oct 2015 22:03:12 +0000 (09:03 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 21 Oct 2015 22:03:12 +0000 (09:03 +1100)
commit3795d2475f151e305b3c3f0d7a6f768305030c6e
treed6b26004d766457ba013df8b6ef66f7ee943c9fc
parentdcc6484478abc2fafd785f450505e065cfda238c
mm, fs: introduce mapping_gfp_constraint()

There are many places which use mapping_gfp_mask to restrict a more
generic gfp mask which would be used for allocations which are not
directly related to the page cache but they are performed in the same
context.

Let's introduce a helper function which makes the restriction explicit and
easier to track.  This patch doesn't introduce any functional changes.

Signed-off-by: Michal Hocko <mhocko@suse.com>
Suggested-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
19 files changed:
drivers/gpu/drm/drm_gem.c
drivers/gpu/drm/i915/i915_gem.c
fs/btrfs/compression.c
fs/btrfs/ctree.h
fs/btrfs/free-space-cache.c
fs/buffer.c
fs/ceph/addr.c
fs/cifs/file.c
fs/ext4/inode.c
fs/ext4/readpage.c
fs/logfs/segment.c
fs/mpage.c
fs/namei.c
fs/nilfs2/inode.c
fs/ntfs/file.c
fs/splice.c
include/linux/pagemap.h
mm/filemap.c
mm/readahead.c