diff options
Diffstat (limited to 'mm/shmem.c')
-rw-r--r-- | mm/shmem.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/mm/shmem.c b/mm/shmem.c index 76ecbac0d55b..8a82342a8595 100644 --- a/mm/shmem.c +++ b/mm/shmem.c | |||
@@ -1026,8 +1026,8 @@ static struct page *shmem_swapin_async(struct shared_policy *p, | |||
1026 | return page; | 1026 | return page; |
1027 | } | 1027 | } |
1028 | 1028 | ||
1029 | struct page *shmem_swapin(struct shmem_inode_info *info, swp_entry_t entry, | 1029 | static struct page *shmem_swapin(struct shmem_inode_info *info, |
1030 | unsigned long idx) | 1030 | swp_entry_t entry, unsigned long idx) |
1031 | { | 1031 | { |
1032 | struct shared_policy *p = &info->policy; | 1032 | struct shared_policy *p = &info->policy; |
1033 | int i, num; | 1033 | int i, num; |
@@ -1329,14 +1329,14 @@ static int shmem_fault(struct vm_area_struct *vma, struct vm_fault *vmf) | |||
1329 | } | 1329 | } |
1330 | 1330 | ||
1331 | #ifdef CONFIG_NUMA | 1331 | #ifdef CONFIG_NUMA |
1332 | int shmem_set_policy(struct vm_area_struct *vma, struct mempolicy *new) | 1332 | static int shmem_set_policy(struct vm_area_struct *vma, struct mempolicy *new) |
1333 | { | 1333 | { |
1334 | struct inode *i = vma->vm_file->f_path.dentry->d_inode; | 1334 | struct inode *i = vma->vm_file->f_path.dentry->d_inode; |
1335 | return mpol_set_shared_policy(&SHMEM_I(i)->policy, vma, new); | 1335 | return mpol_set_shared_policy(&SHMEM_I(i)->policy, vma, new); |
1336 | } | 1336 | } |
1337 | 1337 | ||
1338 | struct mempolicy * | 1338 | static struct mempolicy *shmem_get_policy(struct vm_area_struct *vma, |
1339 | shmem_get_policy(struct vm_area_struct *vma, unsigned long addr) | 1339 | unsigned long addr) |
1340 | { | 1340 | { |
1341 | struct inode *i = vma->vm_file->f_path.dentry->d_inode; | 1341 | struct inode *i = vma->vm_file->f_path.dentry->d_inode; |
1342 | unsigned long idx; | 1342 | unsigned long idx; |