linux-embedded.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Paulius Zaleckas <paulius.zaleckas@teltonika.lt>
Cc: jaredeh@gmail.com, "Jörn Engel" <joern@logfs.org>,
	linux-mtd <linux-mtd@lists.infradead.org>,
	Linux-kernel@vger.kernel.org, linux-embedded@vger.kernel.org,
	tim.bird@AM.SONY.COM
Subject: Re: [PATCH 01/10] AXFS: exporting xip_file_fault() for use with AXFS
Date: Thu, 21 Aug 2008 10:32:55 +0300	[thread overview]
Message-ID: <48AD1A27.2090400@teltonika.lt> (raw)
In-Reply-To: <48AD1860.4040001@teltonika.lt>

Paulius Zaleckas wrote:
> Jared Hulbert wrote:
>> We'll need this for AXFS.  The equivalent function in filemap.c is exported.
>>
>> Signed-off-by: Jared Hulbert <jaredeh@gmail.com>
>> ---
>>  include/linux/mm.h |    4 ++++
>>  mm/filemap_xip.c   |    3 ++-
>>  2 files changed, 6 insertions(+), 1 deletion(-)
>>
>> diff --git a/include/linux/mm.h b/include/linux/mm.h
>> index 72a15dc..2be5c22 100644
>> --- a/include/linux/mm.h
>> +++ b/include/linux/mm.h
>> @@ -161,6 +161,10 @@ struct vm_fault {
>>  					 */
>>  };
>>  
>> +#ifdef CONFIG_FS_XIP
>> +extern int xip_file_fault(struct vm_area_struct *vma, struct vm_fault *vmf);
>> +#endif
>> +
> 
> No need for #ifdef here as this function is compiled and exported in .c
> regardless of CONFIG_FS_XIP

Sorry I am wrong... Have to get more sleep :)

>>  /*
>>   * These are the virtual MM functions - opening of an area, closing and
>>   * unmapping it (needed to keep files on disk up-to-date etc), pointer
>> diff --git a/mm/filemap_xip.c b/mm/filemap_xip.c
>> index 380ab40..ab2f174 100644
>> --- a/mm/filemap_xip.c
>> +++ b/mm/filemap_xip.c
>> @@ -206,7 +206,7 @@ __xip_unmap (struct address_space * mapping,
>>   *
>>   * This function is derived from filemap_fault, but used for execute in place
>>   */
>> -static int xip_file_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
>> +int xip_file_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
>>  {
>>  	struct file *file = vma->vm_file;
>>  	struct address_space *mapping = file->f_mapping;
>> @@ -262,6 +262,7 @@ found:
>>  		return 0;
>>  	}
>>  }
>> +EXPORT_SYMBOL_GPL(xip_file_fault);
>>  
>>  static struct vm_operations_struct xip_file_vm_ops = {
>>  	.fault	= xip_file_fault,
>>
> 
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/
> 

  reply	other threads:[~2008-08-21  7:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-21  5:44 [PATCH 01/10] AXFS: exporting xip_file_fault() for use with AXFS Jared Hulbert
2008-08-21  7:25 ` Paulius Zaleckas
2008-08-21  7:32   ` Paulius Zaleckas [this message]
2008-08-21  7:42 ` Carsten Otte

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=48AD1A27.2090400@teltonika.lt \
    --to=paulius.zaleckas@teltonika.lt \
    --cc=Linux-kernel@vger.kernel.org \
    --cc=jaredeh@gmail.com \
    --cc=joern@logfs.org \
    --cc=linux-embedded@vger.kernel.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=tim.bird@AM.SONY.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 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).