* [PATCH v2] ext4: remove readpage() check up for mmap file [not found] <1404368274-10404-1-git-send-email-zhenzhang.zhang@huawei.com> @ 2014-07-03 6:18 ` Zhang Zhen 2014-07-15 13:43 ` Theodore Ts'o 0 siblings, 1 reply; 4+ messages in thread From: Zhang Zhen @ 2014-07-03 6:18 UTC (permalink / raw) To: linux-ext4@vger.kernel.org; +Cc: wangnan0, Zwisler, Ross, tytso@mit.edu There is no kind of file does not supply page reading function. Change v1 -> v2: - deleted the mapping variable Signed-off-by: Zhang Zhen <zhenzhang.zhang@huawei.com> --- fs/ext4/file.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/fs/ext4/file.c b/fs/ext4/file.c index 8695f70..aca7b24 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; ^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v2] ext4: remove readpage() check up for mmap file 2014-07-03 6:18 ` [PATCH v2] ext4: remove readpage() check up for mmap file Zhang Zhen @ 2014-07-15 13:43 ` Theodore Ts'o 2014-07-15 14:16 ` Wilcox, Matthew R 0 siblings, 1 reply; 4+ messages in thread From: Theodore Ts'o @ 2014-07-15 13:43 UTC (permalink / raw) To: Zhang Zhen Cc: linux-ext4@vger.kernel.org, wangnan0, Zwisler, Ross, Matthew Wilcox On Thu, Jul 03, 2014 at 02:18:31PM +0800, Zhang Zhen wrote: > There is no kind of file does not supply page reading function. The code in question originally came from ext2, when the a_ops used in XIP mode did not have a readpage function. And since there is an outstanding XIP patch set that Matthew Wilcox has been working on, I was going to NACK this. Howeveer, it looks like the lines in question are getting removed in the most recent version of the XIP patch set that I've seen, so it it seems the only problem is this will cause a minor patch conflict with XIP. So I'll accept this, and assume the XIP folks aren't going to object.... - Ted ^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [PATCH v2] ext4: remove readpage() check up for mmap file 2014-07-15 13:43 ` Theodore Ts'o @ 2014-07-15 14:16 ` Wilcox, Matthew R 2014-07-15 16:16 ` Theodore Ts'o 0 siblings, 1 reply; 4+ messages in thread From: Wilcox, Matthew R @ 2014-07-15 14:16 UTC (permalink / raw) To: Theodore Ts'o, Zhang Zhen Cc: linux-ext4@vger.kernel.org, wangnan0@huawei.com, Zwisler, Ross Are you sure about the origins of that check, Ted? It's not there in current ext2, and current XIP code calls the generic xip_file_mmap() method, not an ext2/4 specific one. In any case, yes, no objection from my side to removing this check. ________________________________________ From: Theodore Ts'o [tytso@mit.edu] Sent: July 15, 2014 6:43 AM To: Zhang Zhen Cc: linux-ext4@vger.kernel.org; wangnan0@huawei.com; Zwisler, Ross; Wilcox, Matthew R Subject: Re: [PATCH v2] ext4: remove readpage() check up for mmap file On Thu, Jul 03, 2014 at 02:18:31PM +0800, Zhang Zhen wrote: > There is no kind of file does not supply page reading function. The code in question originally came from ext2, when the a_ops used in XIP mode did not have a readpage function. And since there is an outstanding XIP patch set that Matthew Wilcox has been working on, I was going to NACK this. Howeveer, it looks like the lines in question are getting removed in the most recent version of the XIP patch set that I've seen, so it it seems the only problem is this will cause a minor patch conflict with XIP. So I'll accept this, and assume the XIP folks aren't going to object.... - Ted ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2] ext4: remove readpage() check up for mmap file 2014-07-15 14:16 ` Wilcox, Matthew R @ 2014-07-15 16:16 ` Theodore Ts'o 0 siblings, 0 replies; 4+ messages in thread From: Theodore Ts'o @ 2014-07-15 16:16 UTC (permalink / raw) To: Wilcox, Matthew R Cc: Zhang Zhen, linux-ext4@vger.kernel.org, wangnan0@huawei.com, Zwisler, Ross On Tue, Jul 15, 2014 at 02:16:40PM +0000, Wilcox, Matthew R wrote: > Are you sure about the origins of that check, Ted? It's not there > in current ext2, and current XIP code calls the generic > xip_file_mmap() method, not an ext2/4 specific one. That was my memory, but I admit I haven't gone diving into the pre-git linux-history tree to make sure..... But in any case, the only possible potential conflict would have been on the XIP patch set, and it doesn't seem to be an issue there. (BTW, what's the current status on the XIP patch set? I admit I've gotten too busy to track its status lately. There were a bunch of comments from mm and core vfs folks, but that was a while ago. What's still left to be resolved at this point?) - Ted ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-07-15 16:16 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1404368274-10404-1-git-send-email-zhenzhang.zhang@huawei.com>
2014-07-03 6:18 ` [PATCH v2] ext4: remove readpage() check up for mmap file Zhang Zhen
2014-07-15 13:43 ` Theodore Ts'o
2014-07-15 14:16 ` Wilcox, Matthew R
2014-07-15 16:16 ` Theodore Ts'o
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).