aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorZhang Zhen <zhenzhang.zhang@huawei.com>2014-07-15 09:56:19 -0400
committerTheodore Ts'o <tytso@mit.edu>2014-07-15 09:56:19 -0400
commit590a141863f726216d452f26bdcc59d648fd7cb0 (patch)
tree599c763ae5e80aa1f130cef0ce8701aa2bbdec7c /fs
parent4f579ae7de560e5f449587a6c3f02594d53d4d51 (diff)
ext4: remove readpage() check in ext4_mmap_file()
There is no kind of file which does not supply a page reading function. Signed-off-by: Zhang Zhen <zhenzhang.zhang@huawei.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs')
-rw-r--r--fs/ext4/file.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/ext4/file.c b/fs/ext4/file.c
index 8695f70af1ef..aca7b24a4432 100644
--- a/fs/ext4/file.c
+++ b/fs/ext4/file.c
@@ -200,10 +200,6 @@ static const struct vm_operations_struct ext4_file_vm_ops = {
200 200
201static int ext4_file_mmap(struct file *file, struct vm_area_struct *vma) 201static int ext4_file_mmap(struct file *file, struct vm_area_struct *vma)
202{ 202{
203 struct address_space *mapping = file->f_mapping;
204
205 if (!mapping->a_ops->readpage)
206 return -ENOEXEC;
207 file_accessed(file); 203 file_accessed(file);
208 vma->vm_ops = &ext4_file_vm_ops; 204 vma->vm_ops = &ext4_file_vm_ops;
209 return 0; 205 return 0;