diff options
author | Robert Love <rlove@google.com> | 2008-10-14 10:00:47 -0400 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2010-09-29 17:49:10 -0700 |
commit | f830978a1b8d762361cee817a634a02a6c10bc9f (patch) | |
tree | 6f46bb3ff08e35c7bc37e2eead27e26d9fb597d3 /kernel/pid_namespace.c | |
parent | a1168539469592b7b44495314721e522219551ef (diff) |
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>
Diffstat (limited to 'kernel/pid_namespace.c')
0 files changed, 0 insertions, 0 deletions