ashmem for 2.6.27.
authorRobert Love <rlove@google.com>
Tue, 14 Oct 2008 14:00:47 +0000 (10:00 -0400)
committerArve Hjønnevåg <arve@android.com>
Mon, 8 Feb 2010 23:07:23 +0000 (15:07 -0800)
commit97f93ad8e2e34080a528666314d85ce7e89b3354
tree8b4c7274cf1d3aff880eda80761e5918a802c5e5
parentd69e8af59880b55f8c7db87ce31e7147d2be8cad
ashmem for 2.6.27.

Forward port of ashmem to 2.6.27.

Signed-off-by: Robert Love <rlove@google.com>
ashmem: Don't install fault handler for private mmaps.

Ashmem is used to create named private heaps. If this heap is backed
by a tmpfs file it will allocate two pages for every page touched.
In 2.6.27, the extra page would later be freed, but 2.6.29 does not
scan anonymous pages when running without swap so the memory is not
freed while the file is referenced. This change changes the behavior
of private ashmem mmaps to match /dev/zero instead tmpfs.

Signed-off-by: Arve Hjønnevåg <arve@android.com>
ashmem: Add common prefix to name reported in /proc/pid/maps

Signed-off-by: Arve Hjønnevåg <arve@android.com>
ashmem: don't require a page aligned size

This makes ashmem more similar to shmem and mmap, by
not requiring the specified size to be page aligned,
instead rounding it internally as needed.

Signed-off-by: Marco Nelissen <marcone@android.com>
arch/arm/configs/msm_defconfig
include/linux/ashmem.h [new file with mode: 0644]
include/linux/mm.h
init/Kconfig
mm/Makefile
mm/ashmem.c [new file with mode: 0644]
mm/shmem.c