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. [akpm@linux-foundation.org: coding-style fixes] 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> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
Showing
- drivers/gpu/drm/drm_gem.c 1 addition, 1 deletiondrivers/gpu/drm/drm_gem.c
- drivers/gpu/drm/i915/i915_gem.c 1 addition, 2 deletionsdrivers/gpu/drm/i915/i915_gem.c
- fs/btrfs/compression.c 3 additions, 4 deletionsfs/btrfs/compression.c
- fs/btrfs/ctree.h 1 addition, 1 deletionfs/btrfs/ctree.h
- fs/btrfs/free-space-cache.c 2 additions, 2 deletionsfs/btrfs/free-space-cache.c
- fs/buffer.c 1 addition, 1 deletionfs/buffer.c
- fs/ceph/addr.c 4 additions, 3 deletionsfs/ceph/addr.c
- fs/cifs/file.c 1 addition, 1 deletionfs/cifs/file.c
- fs/ext4/inode.c 1 addition, 1 deletionfs/ext4/inode.c
- fs/ext4/readpage.c 1 addition, 1 deletionfs/ext4/readpage.c
- fs/logfs/segment.c 1 addition, 1 deletionfs/logfs/segment.c
- fs/mpage.c 2 additions, 2 deletionsfs/mpage.c
- fs/namei.c 1 addition, 1 deletionfs/namei.c
- fs/nilfs2/inode.c 2 additions, 2 deletionsfs/nilfs2/inode.c
- fs/ntfs/file.c 2 additions, 2 deletionsfs/ntfs/file.c
- fs/splice.c 1 addition, 1 deletionfs/splice.c
- include/linux/pagemap.h 7 additions, 0 deletionsinclude/linux/pagemap.h
- mm/filemap.c 2 additions, 2 deletionsmm/filemap.c
- mm/readahead.c 2 additions, 2 deletionsmm/readahead.c
Loading
Please register or sign in to comment