aboutsummaryrefslogtreecommitdiffstats
path: root/fs/hugetlbfs
diff options
context:
space:
mode:
authorZhang Zhen <zhenzhang.zhang@huawei.com>2015-06-24 19:56:25 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2015-06-24 20:49:41 -0400
commita67a31fa308a9032ead31b0501dafdb44ccf5a12 (patch)
treec56546d055a983dbb404d571012bbf99505ab696 /fs/hugetlbfs
parent83d3f0e90c6c8f833e3da91917c243a916fda69e (diff)
mm/hugetlb: reduce arch dependent code about hugetlb_prefault_arch_hook
Currently we have many duplicates in definitions of hugetlb_prefault_arch_hook. In all architectures this function is empty. Signed-off-by: Zhang Zhen <zhenzhang.zhang@huawei.com> Acked-by: David Rientjes <rientjes@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/hugetlbfs')
-rw-r--r--fs/hugetlbfs/inode.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/hugetlbfs/inode.c b/fs/hugetlbfs/inode.c
index 87724c1d7be6..0cf74df68617 100644
--- a/fs/hugetlbfs/inode.c
+++ b/fs/hugetlbfs/inode.c
@@ -130,7 +130,6 @@ static int hugetlbfs_file_mmap(struct file *file, struct vm_area_struct *vma)
130 goto out; 130 goto out;
131 131
132 ret = 0; 132 ret = 0;
133 hugetlb_prefault_arch_hook(vma->vm_mm);
134 if (vma->vm_flags & VM_WRITE && inode->i_size < len) 133 if (vma->vm_flags & VM_WRITE && inode->i_size < len)
135 inode->i_size = len; 134 inode->i_size = len;
136out: 135out: