login
Login
/
Register
Search
Search this site:
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
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Paulius Zaleckas
Subject:
Re: [PATCH 01/10] AXFS: exporting xip_file_fault() for use with AXFS
Date: Thursday, August 21, 2008 - 12: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 wit ...
, Jared Hulbert
, (Wed Aug 20, 10:44 pm)
Re: [PATCH 01/10] AXFS: exporting xip_file_fault() for use ...
, Paulius Zaleckas
, (Thu Aug 21, 12:25 am)
Re: [PATCH 01/10] AXFS: exporting xip_file_fault() for use ...
, Paulius Zaleckas
, (Thu Aug 21, 12:32 am)
Re: [PATCH 01/10] AXFS: exporting xip_file_fault() for use ...
, Carsten Otte
, (Thu Aug 21, 12:42 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Ingo Molnar
Re: [patch] e1000=y && e1000e=m regression fix
Greg Kroah-Hartman
[PATCH 20/36] Driver core: Call device_pm_add() after bus_add_device() in device_a...
Boaz Harrosh
how to use KBUILD_EXTRA_SYMBOLS
Pekka Enberg
Re: [PATCH] include/linux/slab.h: new KFREE() macro.
Brandeburg, Jesse
RE: [regression] e1000e broke e1000 (was: Re: [ANNOUNCE] e1000 toe1000e migration ...
git
:
Bill Lear
cpio command not found
Jing Xue
Re: git rm --cached
Fredrik Kuivinen
Re: fatal: unable to create '.git/index': File exists
Michael S. Tsirkin
git-kill: rewrite history removing a commit
Johannes Schindelin
Re: [PATCH 1/3 v2] Implement the patience diff algorithm
linux-netdev
:
Jamie Lokier
Re: POHMELFS high performance network filesystem. Transactions, failover, performa...
Johann Baudy
Packet mmap: TX RING and zero copy
Stephen Hemminger
Re: NAPI, rx_no_buffer_count, e1000, r8169 and other actors
Oliver Neukum
Re: [RFC] Patch to option HSO driver to the kernel
Paulius Zaleckas
Re: [RFC] Patch to option HSO driver to the kernel
openbsd-misc
:
Netmaffia.hu
Tini Lányok AKCIÓBAN OTTHON
Bryan Irvine
Re: DVD burn error: No space left on device
Tomas Bodzar
Re: OpenSMTPd actual development and integration
Siju George
This is what Linus Torvalds calls openBSD crowd
elitdostlar
Seks partneri arayan bayanlar bu adreste - 8878xs706x6438
git-commits-head
:
Linux Kernel Mailing List
powerpc/fsl_msi: enable msi allocation in all banks
Linux Kernel Mailing List
via82cxxx: add support for VT6415 PCIE PATA IDE Host Controller
Linux Kernel Mailing List
[ARM] mmp: avengers lite (pxa168) board bring up
Linux Kernel Mailing List
USB: remove duplicate entry in Option driver and Pl2303 driver for Huawei modem
Linux Kernel Mailing List
ARM: dma-mapping: remove dmac_clean_range and dmac_inv_range
Colocation donated by:
Syndicate