diff options
author | Adrian Bunk <bunk@stusta.de> | 2007-02-28 23:11:03 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-03-01 17:53:35 -0500 |
commit | 9b83a6a8523a8a96b6353174b193c5c93e16c6c3 (patch) | |
tree | 33bfdc0e1794b3970b7454d746b20c177037765a /mm/tiny-shmem.c | |
parent | de01bad2f5dec2977143aa242e7eba71d11a4363 (diff) |
[PATCH] mm/{,tiny-}shmem.c cleanups
shmem_{nopage,mmap} are no longer used in ipc/shm.c
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/tiny-shmem.c')
-rw-r--r-- | mm/tiny-shmem.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mm/tiny-shmem.c b/mm/tiny-shmem.c index c7f6e1914bc4..8803471593fd 100644 --- a/mm/tiny-shmem.c +++ b/mm/tiny-shmem.c | |||
@@ -126,6 +126,7 @@ int shmem_unuse(swp_entry_t entry, struct page *page) | |||
126 | return 0; | 126 | return 0; |
127 | } | 127 | } |
128 | 128 | ||
129 | #if 0 | ||
129 | int shmem_mmap(struct file *file, struct vm_area_struct *vma) | 130 | int shmem_mmap(struct file *file, struct vm_area_struct *vma) |
130 | { | 131 | { |
131 | file_accessed(file); | 132 | file_accessed(file); |
@@ -135,6 +136,7 @@ int shmem_mmap(struct file *file, struct vm_area_struct *vma) | |||
135 | return 0; | 136 | return 0; |
136 | #endif | 137 | #endif |
137 | } | 138 | } |
139 | #endif /* 0 */ | ||
138 | 140 | ||
139 | #ifndef CONFIG_MMU | 141 | #ifndef CONFIG_MMU |
140 | unsigned long shmem_get_unmapped_area(struct file *file, | 142 | unsigned long shmem_get_unmapped_area(struct file *file, |