Thread (20 messages) 20 messages, 4 authors, 2013-01-18
STALE4896d
Revisions (2)
  1. v2 current
  2. v2 [diff vs current]

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

From: Darrick J. Wong <hidden>
Date: 2013-01-15 05:42:58
Also in: linux-fsdevel, lkml
Subsystem: 9p file system, filesystems (vfs and infrastructure), the rest · Maintainers: Eric Van Hensbergen, Latchesar Ionkov, Dominique Martinet, Alexander Viro, Christian Brauner, Linus Torvalds

Fix up the ->page_mkwrite handler to provide stable page writes if necessary.

Signed-off-by: Darrick J. Wong <redacted>
---
 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..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)
 	lock_page(page);
 	if (page->mapping != inode->i_mapping)
 		goto out_unlock;
+	wait_for_stable_page(page);
 
 	return VM_FAULT_LOCKED;
 out_unlock:
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help