Commit d8dc74f2 authored by Adrian Bunk's avatar Adrian Bunk Committed by Linus Torvalds

mm/shmem.c: make 3 functions static

This patch makes three needlessly global functions static.
Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
Cc: Hugh Dickins <hugh@veritas.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent af767cbd
...@@ -648,9 +648,6 @@ static inline int page_mapped(struct page *page) ...@@ -648,9 +648,6 @@ static inline int page_mapped(struct page *page)
extern void show_free_areas(void); extern void show_free_areas(void);
#ifdef CONFIG_SHMEM #ifdef CONFIG_SHMEM
int shmem_set_policy(struct vm_area_struct *vma, struct mempolicy *new);
struct mempolicy *shmem_get_policy(struct vm_area_struct *vma,
unsigned long addr);
int shmem_lock(struct file *file, int lock, struct user_struct *user); int shmem_lock(struct file *file, int lock, struct user_struct *user);
#else #else
static inline int shmem_lock(struct file *file, int lock, static inline int shmem_lock(struct file *file, int lock,
...@@ -658,18 +655,6 @@ static inline int shmem_lock(struct file *file, int lock, ...@@ -658,18 +655,6 @@ static inline int shmem_lock(struct file *file, int lock,
{ {
return 0; return 0;
} }
static inline int shmem_set_policy(struct vm_area_struct *vma,
struct mempolicy *new)
{
return 0;
}
static inline struct mempolicy *shmem_get_policy(struct vm_area_struct *vma,
unsigned long addr)
{
return NULL;
}
#endif #endif
struct file *shmem_file_setup(char *name, loff_t size, unsigned long flags); struct file *shmem_file_setup(char *name, loff_t size, unsigned long flags);
......
...@@ -1026,8 +1026,8 @@ static struct page *shmem_swapin_async(struct shared_policy *p, ...@@ -1026,8 +1026,8 @@ static struct page *shmem_swapin_async(struct shared_policy *p,
return page; return page;
} }
struct page *shmem_swapin(struct shmem_inode_info *info, swp_entry_t entry, static struct page *shmem_swapin(struct shmem_inode_info *info,
unsigned long idx) swp_entry_t entry, unsigned long idx)
{ {
struct shared_policy *p = &info->policy; struct shared_policy *p = &info->policy;
int i, num; int i, num;
...@@ -1329,14 +1329,14 @@ static int shmem_fault(struct vm_area_struct *vma, struct vm_fault *vmf) ...@@ -1329,14 +1329,14 @@ static int shmem_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
} }
#ifdef CONFIG_NUMA #ifdef CONFIG_NUMA
int shmem_set_policy(struct vm_area_struct *vma, struct mempolicy *new) static int shmem_set_policy(struct vm_area_struct *vma, struct mempolicy *new)
{ {
struct inode *i = vma->vm_file->f_path.dentry->d_inode; struct inode *i = vma->vm_file->f_path.dentry->d_inode;
return mpol_set_shared_policy(&SHMEM_I(i)->policy, vma, new); return mpol_set_shared_policy(&SHMEM_I(i)->policy, vma, new);
} }
struct mempolicy * static struct mempolicy *shmem_get_policy(struct vm_area_struct *vma,
shmem_get_policy(struct vm_area_struct *vma, unsigned long addr) unsigned long addr)
{ {
struct inode *i = vma->vm_file->f_path.dentry->d_inode; struct inode *i = vma->vm_file->f_path.dentry->d_inode;
unsigned long idx; unsigned long idx;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment