diff options
-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 = { | |||
200 | 200 | ||
201 | static int ext4_file_mmap(struct file *file, struct vm_area_struct *vma) | 201 | static 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; |