From: Darrick J. Wong Date: Fri, 22 Feb 2013 00:42:53 +0000 (-0800) Subject: 9pfs: fix filesystem to wait for stable page writeback X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=13575ca14fcdacd1ad914d00bc63eb4d96280986;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git 9pfs: fix filesystem to wait for stable page writeback Fix up the ->page_mkwrite handler to provide stable page writes if necessary. Signed-off-by: Darrick J. Wong Cc: Adrian Hunter Cc: Andy Lutomirski Cc: Artem Bityutskiy Cc: Jan Kara Cc: Joel Becker Cc: Mark Fasheh Cc: Steven Whitehouse Cc: Jens Axboe Cc: Eric Van Hensbergen Cc: Ron Minnich Cc: Latchesar Ionkov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/9p/vfs_file.c b/fs/9p/vfs_file.c index 7a339976757..c921ac92ea4 100644 --- a/fs/9p/vfs_file.c +++ b/fs/9p/vfs_file.c @@ -616,6 +616,7 @@ v9fs_vm_page_mkwrite(struct vm_area_struct *vma, struct vm_fault *vmf) lock_page(page); if (page->mapping != inode->i_mapping) goto out_unlock; + wait_for_stable_page(page); return VM_FAULT_LOCKED; out_unlock: