summaryrefslogtreecommitdiff
path: root/mm/filemap_xip.c
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2012-06-12 18:20:29 +0400
committerAl Viro <viro@zeniv.linux.org.uk>2012-07-31 01:02:48 +0400
commit4fcf1c6205fcfc7a226a144ae4d83b7f5415cab8 (patch)
treee0a8ee8640c670123e09a8a041a3ed00c89a0d60 /mm/filemap_xip.c
parent41c4d25f78c01ede13efee1f2e979f3f35dd26f6 (diff)
downloadlinux-4fcf1c6205fcfc7a226a144ae4d83b7f5415cab8.tar.xz
mm: Make default vm_ops provide ->page_mkwrite handler
Make default vm_ops provide ->page_mkwrite handler. Currently it only updates file's modification times and gets locked page but later it will also handle filesystem freezing. BugLink: https://bugs.launchpad.net/bugs/897421 Tested-by: Kamal Mostafa <kamal@canonical.com> Tested-by: Peter M. Petrakis <peter.petrakis@canonical.com> Tested-by: Dann Frazier <dann.frazier@canonical.com> Tested-by: Massimo Morana <massimo.morana@canonical.com> Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'mm/filemap_xip.c')
-rw-r--r--mm/filemap_xip.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mm/filemap_xip.c b/mm/filemap_xip.c
index 213ca1f53409..80b34ef82dfe 100644
--- a/mm/filemap_xip.c
+++ b/mm/filemap_xip.c
@@ -304,6 +304,7 @@ out:
static const struct vm_operations_struct xip_file_vm_ops = {
.fault = xip_file_fault,
+ .page_mkwrite = filemap_page_mkwrite,
};
int xip_file_mmap(struct file * file, struct vm_area_struct * vma)