aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2012-06-12 10:20:29 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2012-07-30 17:02:48 -0400
commit4fcf1c6205fcfc7a226a144ae4d83b7f5415cab8 (patch)
treee0a8ee8640c670123e09a8a041a3ed00c89a0d60 /include
parent41c4d25f78c01ede13efee1f2e979f3f35dd26f6 (diff)
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 'include')
-rw-r--r--include/linux/mm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h
index b36d08ce5c57..15987d8e1d59 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -1411,6 +1411,7 @@ extern void truncate_inode_pages_range(struct address_space *,
1411 1411
1412/* generic vm_area_ops exported for stackable file systems */ 1412/* generic vm_area_ops exported for stackable file systems */
1413extern int filemap_fault(struct vm_area_struct *, struct vm_fault *); 1413extern int filemap_fault(struct vm_area_struct *, struct vm_fault *);
1414extern int filemap_page_mkwrite(struct vm_area_struct *vma, struct vm_fault *vmf);
1414 1415
1415/* mm/page-writeback.c */ 1416/* mm/page-writeback.c */
1416int write_one_page(struct page *page, int wait); 1417int write_one_page(struct page *page, int wait);