aboutsummaryrefslogtreecommitdiff
path: root/mm/oom_kill.c
diff options
context:
space:
mode:
authorHugh Dickins <hughd@google.com>2011-03-22 16:33:43 -0700
committerAK <andi@firstfloor.org>2011-03-31 11:58:44 -0700
commitb845a0bebf3e8728277ed92e1cb66e8901cf4b50 (patch)
tree2d1954d6a42c83565d63ebdf37b7b66cedead8df /mm/oom_kill.c
parentb9aa753f949640e886e776a793af042f4262bde7 (diff)
shmem: let shared anonymous be nonlinear again
commit bee4c36a5cf5c9f63ce1d7372aa62045fbd16d47 upstream. 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> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Signed-off-by: Andi Kleen <ak@linux.intel.com>
Diffstat (limited to 'mm/oom_kill.c')
0 files changed, 0 insertions, 0 deletions