Skip to contentSkip to conversation

pramfs: export xip_file_fault

PATCH In review Marco Stornelli 1 participant 1 message Sep 7, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 3/19 pramfs: export xip_file_fault

Export xip_file_fault to modules.

---
 include/linux/fs.h |    2 ++
 mm/filemap_xip.c   |    3 ++-
 2 files changed, 4 insertions(+), 1 deletions(-)
include/linux/fs.h +2 -0
index 3b4cd82..1f61e07 100644
@@ -41,6 +41,7 @@ struct kobject;
 struct pipe_inode_info;
 struct poll_table_struct;
 struct kstatfs;
+struct vm_fault;
 struct vm_area_struct;
 struct vfsmount;
 struct cred;
@@ -2445,6 +2446,7 @@ extern int nonseekable_open(struct inode * inode, struct file * filp);
 #ifdef CONFIG_FS_XIP
 extern ssize_t xip_file_read(struct file *filp, char __user *buf, size_t len,
 			     loff_t *ppos);
+extern int xip_file_fault(struct vm_area_struct *vma, struct vm_fault *vmf);
 extern int xip_file_mmap(struct file * file, struct vm_area_struct * vma);
 extern ssize_t xip_file_write(struct file *filp, const char __user *buf,
 			      size_t len, loff_t *ppos);
mm/filemap_xip.c +2 -1
index 28fe26b..50bbc5d 100644
@@ -219,7 +219,7 @@ retry:
  *
  * 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;
@@ -303,6 +303,7 @@ out:
 	}
 }
 
+EXPORT_SYMBOL_GPL(xip_file_fault);
 static const struct vm_operations_struct xip_file_vm_ops = {
 	.fault	= xip_file_fault,
 	.page_mkwrite	= filemap_page_mkwrite,
Signature · 7 lines
1.7.3.4

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>