login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
August
»
21
Re: [PATCH 01/10] AXFS: exporting xip_file_fault() for use with AXFS
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Paulius Zaleckas <paulius.zaleckas@...>
To: <jaredeh@...>
Cc: <Linux-kernel@...>, <linux-embedded@...>, linux-mtd <linux-mtd@...>, Jörn Engel <joern@...>, <tim.bird@...>
Subject:
Re: [PATCH 01/10] AXFS: exporting xip_file_fault() for use with AXFS
Date: Thursday, August 21, 2008 - 3:25 am
Jared Hulbert wrote:
quoted text
> 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
quoted text
> /* > * 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, >
--
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH 01/10] AXFS: exporting xip_file_fault() for use with ...
, Jared Hulbert
, (Thu Aug 21, 1:44 am)
Re: [PATCH 01/10] AXFS: exporting xip_file_fault() for use w...
, Carsten Otte
, (Thu Aug 21, 3:42 am)
Re: [PATCH 01/10] AXFS: exporting xip_file_fault() for use w...
, Paulius Zaleckas
, (Thu Aug 21, 3:25 am)
Re: [PATCH 01/10] AXFS: exporting xip_file_fault() for use w...
, Paulius Zaleckas
, (Thu Aug 21, 3:32 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
david
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Greg Kroah-Hartman
[PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO
Trent Piepho
Re: [PATCH] [POWERPC] Improve (in|out)_beXX() asm code
linux-netdev
:
Steven Rostedt
Re: -rt scheduling: wakeup bug?
Andrew Morton
Re: [BUG] New Kernel Bugs
Gerrit Renker
[PATCH 0/37] dccp: Feature negotiation - last call for comments
David Miller
[GIT]: Networking
git
:
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
6 users
and
626 guests
online.
Online users
ez_wpthemes
portlandcarins
posters5suuhwkj
carlo331
greggtdowling
marqueeshfafrk
Syndicate