Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 590a1418 authored by Zhang Zhen's avatar Zhang Zhen Committed by Theodore Ts'o
Browse files

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: default avatarZhang Zhen <zhenzhang.zhang@huawei.com>
Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
parent 4f579ae7
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -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;