[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <53B38434.7030500@huawei.com>
Date: Wed, 2 Jul 2014 12:01:56 +0800
From: Zhang Zhen <zhenzhang.zhang@...wei.com>
To: <linux-ext4@...r.kernel.org>
CC: <tytso@....edu>, Jan Kara <jack@...e.cz>
Subject: [PATCH] ext4: remove readpage() check up for mmap file
There is no kind of file does not supply page reading function.
Signed-off-by: Zhang Zhen <zhenzhang.zhang@...wei.com>
---
fs/ext4/file.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/fs/ext4/file.c b/fs/ext4/file.c
index 8695f70..f5c0a17 100644
--- a/fs/ext4/file.c
+++ b/fs/ext4/file.c
@@ -202,8 +202,6 @@ 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;
--
1.8.1.2
.
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists