From: Darrick J. Wong Date: Thu, 7 Feb 2013 01:27:16 +0000 (+1100) Subject: 9pfs: fix filesystem to wait for stable page writeback X-Git-Tag: next-20130218~1^2~300 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=15541150d34bbe27649568737cfed3672758bcfc;p=karo-tx-linux.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 --- diff --git a/fs/9p/vfs_file.c b/fs/9p/vfs_file.c index 7a3399767570..c921ac92ea4c 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: