From: Zhang Zhen Date: Tue, 15 Jul 2014 13:56:19 +0000 (-0400) Subject: ext4: remove readpage() check in ext4_mmap_file() X-Git-Tag: firefly_0821_release~176^2~3487^2~8 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=590a141863f726216d452f26bdcc59d648fd7cb0;p=firefly-linux-kernel-4.4.55.git 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 --- 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;