From 590a141863f726216d452f26bdcc59d648fd7cb0 Mon Sep 17 00:00:00 2001 From: Zhang Zhen Date: Tue, 15 Jul 2014 09:56:19 -0400 Subject: 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 Signed-off-by: Theodore Ts'o --- fs/ext4/file.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'fs/ext4/file.c') 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; -- cgit v1.2.3