aboutsummaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorRobert Love2008-10-14 09:00:47 -0500
committerColin Cross2011-06-14 11:08:46 -0500
commit6a4e6432fc9e6e00cf295987c4e5e19d4d5bd9cd (patch)
treeb025a6c6aa702c803cc5c0eb0fa5c8c093141cd3 /init
parenta7f1281e92dd98063bbeec925f4cd83e2bfcbd39 (diff)
downloadkernel-common-6a4e6432fc9e6e00cf295987c4e5e19d4d5bd9cd.tar.gz
kernel-common-6a4e6432fc9e6e00cf295987c4e5e19d4d5bd9cd.tar.xz
kernel-common-6a4e6432fc9e6e00cf295987c4e5e19d4d5bd9cd.zip
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 'init')
-rw-r--r--init/Kconfig9
1 files changed, 9 insertions, 0 deletions
diff --git a/init/Kconfig b/init/Kconfig
index 2c6453dfc40..9d2a378cd66 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -1079,6 +1079,15 @@ config SHMEM
1079 option replaces shmem and tmpfs with the much simpler ramfs code, 1079 option replaces shmem and tmpfs with the much simpler ramfs code,
1080 which may be appropriate on small systems without swap. 1080 which may be appropriate on small systems without swap.
1081 1081
1082config ASHMEM
1083 bool "Enable the Anonymous Shared Memory Subsystem"
1084 default n
1085 depends on SHMEM || TINY_SHMEM
1086 help
1087 The ashmem subsystem is a new shared memory allocator, similar to
1088 POSIX SHM but with different behavior and sporting a simpler
1089 file-based API.
1090
1082config AIO 1091config AIO
1083 bool "Enable AIO support" if EXPERT 1092 bool "Enable AIO support" if EXPERT
1084 default y 1093 default y