summaryrefslogtreecommitdiffstats
path: root/mm/swap.c
diff options
context:
space:
mode:
authorHugh Dickins <hughd@google.com>2011-03-23 00:33:43 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2011-03-23 01:44:09 +0100
commitbee4c36a5cf5c9f63ce1d7372aa62045fbd16d47 (patch)
treed2c95aab9b12874d6675d529c3f8dd5cd2a35e10 /mm/swap.c
parentmm/memblock: properly handle overlaps and fix error path (diff)
downloadlinux-bee4c36a5cf5c9f63ce1d7372aa62045fbd16d47.tar.xz
linux-bee4c36a5cf5c9f63ce1d7372aa62045fbd16d47.zip
shmem: let shared anonymous be nonlinear again
Up to 2.6.22, you could use remap_file_pages(2) on a tmpfs file or a shared mapping of /dev/zero or a shared anonymous mapping. In 2.6.23 we disabled it by default, but set VM_CAN_NONLINEAR to enable it on safe mappings. We made sure to set it in shmem_mmap() for tmpfs files, but missed it in shmem_zero_setup() for the others. Fix that at last. Reported-by: Kenny Simpson <theonetruekenny@yahoo.com> Signed-off-by: Hugh Dickins <hughd@google.com> Cc: <stable@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/swap.c')
0 files changed, 0 insertions, 0 deletions