diff options
author | Zhang Zhen <zhenzhang.zhang@huawei.com> | 2014-07-15 15:56:19 +0200 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2014-07-15 15:56:19 +0200 |
commit | 590a141863f726216d452f26bdcc59d648fd7cb0 (patch) | |
tree | 599c763ae5e80aa1f130cef0ce8701aa2bbdec7c /fs/ext4 | |
parent | ext4: fix punch hole on files with indirect mapping (diff) | |
download | linux-590a141863f726216d452f26bdcc59d648fd7cb0.tar.xz linux-590a141863f726216d452f26bdcc59d648fd7cb0.zip |
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/ext4')
-rw-r--r-- | fs/ext4/file.c | 4 |
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 = { static int ext4_file_mmap(struct file *file, struct vm_area_struct *vma) { - struct address_space *mapping = file->f_mapping; - - if (!mapping->a_ops->readpage) - return -ENOEXEC; file_accessed(file); vma->vm_ops = &ext4_file_vm_ops; return 0; |