Fix up the ->page_mkwrite handler to provide stable page writes if necessary. Signed-off-by: Darrick J. Wong <darrick.wong@xxxxxxxxxx> --- fs/9p/vfs_file.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/9p/vfs_file.c b/fs/9p/vfs_file.c index c2483e9..a2d3e2f 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) lock_page(page); if (page->mapping != inode->i_mapping) goto out_unlock; + wait_if_stable_page_write(page); return VM_FAULT_LOCKED; out_unlock: -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html