summaryrefslogtreecommitdiffstats
path: root/drivers/md/raid10.h
diff options
context:
space:
mode:
authorHugh Dickins <hughd@google.com>2011-07-26 02:12:34 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2011-07-26 05:57:11 +0200
commit68da9f055755ee2609a1686722e6d6a7980019ee (patch)
tree9f2810f28a7852b0ed3390f7fa0d29979a2997c2 /drivers/md/raid10.h
parenttmpfs: refine shmem_file_splice_read (diff)
downloadlinux-68da9f055755ee2609a1686722e6d6a7980019ee.tar.xz
linux-68da9f055755ee2609a1686722e6d6a7980019ee.zip
tmpfs: pass gfp to shmem_getpage_gfp
Make shmem_getpage() a wrapper, passing mapping_gfp_mask() down to shmem_getpage_gfp(), which in turn passes gfp down to shmem_swp_alloc(). Change shmem_read_mapping_page_gfp() to use shmem_getpage_gfp() in the CONFIG_SHMEM case; but leave tiny !SHMEM using read_cache_page_gfp(). Add a BUG_ON() in case anyone happens to call this on a non-shmem mapping; though we might later want to let that case route to read_cache_page_gfp(). It annoys me to have these two almost-redundant args, gfp and fault_type: I can't find a better way; but initialize fault_type only in shmem_fault(). Note that before, read_cache_page_gfp() was allocating i915_gem's pages with __GFP_NORETRY as intended; but the corresponding swap vector pages got allocated without it, leaving a small possibility of OOM. Signed-off-by: Hugh Dickins <hughd@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/md/raid10.h')
0 files changed, 0 insertions, 0 deletions