[3/4] 9pfs: Fix filesystem to wait for stable page writeback

Submitted by Darrick J. Wong on Dec. 13, 2012, 8:08 a.m.


Message ID 20121213080802.23360.4487.stgit@blackbox.djwong.org
State Superseded, archived
Headers show

Commit Message

Darrick J. Wong Dec. 13, 2012, 8:08 a.m.
Fix up the ->page_mkwrite handler to provide stable page writes if necessary.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
 fs/9p/vfs_file.c |    1 +
 1 file changed, 1 insertion(+)

To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch hide | download patch | download mbox

diff --git a/fs/9p/vfs_file.c b/fs/9p/vfs_file.c
index c2483e9..357260b 100644
--- a/fs/9p/vfs_file.c
+++ b/fs/9p/vfs_file.c
@@ -620,6 +620,7 @@  v9fs_vm_page_mkwrite(struct vm_area_struct *vma, struct vm_fault *vmf)
 	if (page->mapping != inode->i_mapping)
 		goto out_unlock;
+	wait_for_stable_page(page);