All of lore.kernel.org
 help / color / mirror / Atom feed
From: Zhang Zhen <zhenzhang.zhang@huawei.com>
To: "Zwisler, Ross" <ross.zwisler@intel.com>
Cc: "linux-ext4@vger.kernel.org" <linux-ext4@vger.kernel.org>,
	"jack@suse.cz" <jack@suse.cz>, "tytso@mit.edu" <tytso@mit.edu>,
	<wangnan0@huawei.com>
Subject: Re: [PATCH] ext4: remove readpage() check up for mmap file
Date: Thu, 3 Jul 2014 09:37:12 +0800	[thread overview]
Message-ID: <53B4B3C8.9000102@huawei.com> (raw)
In-Reply-To: <1404314153.24795.4.camel@rzwisler-mobl1.amr.corp.intel.com>

On 2014/7/2 23:15, Zwisler, Ross wrote:
> On Wed, 2014-07-02 at 12:01 +0800, Zhang Zhen wrote:
>> There is no kind of file does not supply page reading function.
>>
>> Signed-off-by: Zhang Zhen <zhenzhang.zhang@huawei.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;
> 
> Assuming this change is correct, the 'mapping' variable is now unused and can
> also be deleted.
> 
Hi,

Thank you for your correction, sorry for my mistake.
I will send a new patch.
>>
>> -	if (!mapping->a_ops->readpage)
>> -		return -ENOEXEC;
>>  	file_accessed(file);
>>  	vma->vm_ops = &ext4_file_vm_ops;
>>  	return 0;
> 



      reply	other threads:[~2014-07-03  1:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1404273488-4612-1-git-send-email-zhenzhang.zhang@huawei.com>
2014-07-02  4:01 ` [PATCH] ext4: remove readpage() check up for mmap file Zhang Zhen
2014-07-02 15:15   ` Zwisler, Ross
2014-07-03  1:37     ` Zhang Zhen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53B4B3C8.9000102@huawei.com \
    --to=zhenzhang.zhang@huawei.com \
    --cc=jack@suse.cz \
    --cc=linux-ext4@vger.kernel.org \
    --cc=ross.zwisler@intel.com \
    --cc=tytso@mit.edu \
    --cc=wangnan0@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.