ext4: remove readpage() check up for mmap file
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH v2 1/1 ext4: remove readpage() check up for mmap file
There is no kind of file does not supply page reading function.
Change v1 -> v2:
- deleted the mapping variable
--- fs/ext4/file.c | 4 ---- 1 file changed, 4 deletions(-)
fs/ext4/file.c +0 -1
@@ -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;
Theodore Ts'o
maintainerQuoted 1 line · Zhang Zhen
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
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 [[email protected]]
Sent: July 15, 2014 6:43 AM
To: Zhang Zhen
Cc: [email protected]; [email protected]; Zwisler, Ross; Wilcox, Matthew R
Subject: Re: [PATCH v2] ext4: remove readpage() check up for mmap file
Quoted 1 line · Zhang Zhen
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
Theodore Ts'o
maintainerQuoted 3 lines · Matthew R
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