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/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/shmem.c')
-rw-r--r-- | mm/shmem.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mm/shmem.c b/mm/shmem.c index 882053031aa0..fcb07882c8e0 100644 --- a/mm/shmem.c +++ b/mm/shmem.c | |||
@@ -1228,7 +1228,8 @@ failed: | |||
1228 | return error; | 1228 | return error; |
1229 | } | 1229 | } |
1230 | 1230 | ||
1231 | struct page *shmem_nopage(struct vm_area_struct *vma, unsigned long address, int *type) | 1231 | static struct page *shmem_nopage(struct vm_area_struct *vma, |
1232 | unsigned long address, int *type) | ||
1232 | { | 1233 | { |
1233 | struct inode *inode = vma->vm_file->f_path.dentry->d_inode; | 1234 | struct inode *inode = vma->vm_file->f_path.dentry->d_inode; |
1234 | struct page *page = NULL; | 1235 | struct page *page = NULL; |
@@ -1335,7 +1336,7 @@ out_nomem: | |||
1335 | return retval; | 1336 | return retval; |
1336 | } | 1337 | } |
1337 | 1338 | ||
1338 | int shmem_mmap(struct file *file, struct vm_area_struct *vma) | 1339 | static int shmem_mmap(struct file *file, struct vm_area_struct *vma) |
1339 | { | 1340 | { |
1340 | file_accessed(file); | 1341 | file_accessed(file); |
1341 | vma->vm_ops = &shmem_vm_ops; | 1342 | vma->vm_ops = &shmem_vm_ops; |