projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d1d1a7
)
9pfs: fix filesystem to wait for stable page writeback
author
Darrick J. Wong
<
[email protected]
>
Fri, 22 Feb 2013 00:42:53 +0000
(16:42 -0800)
committer
Linus Torvalds
<
[email protected]
>
Fri, 22 Feb 2013 01:22:19 +0000
(17:22 -0800)
Fix up the ->page_mkwrite handler to provide stable page writes if necessary.
Signed-off-by: Darrick J. Wong <
[email protected]
>
Cc: Adrian Hunter <
[email protected]
>
Cc: Andy Lutomirski <
[email protected]
>
Cc: Artem Bityutskiy <
[email protected]
>
Cc: Jan Kara <
[email protected]
>
Cc: Joel Becker <
[email protected]
>
Cc: Mark Fasheh <
[email protected]
>
Cc: Steven Whitehouse <
[email protected]
>
Cc: Jens Axboe <
[email protected]
>
Cc: Eric Van Hensbergen <
[email protected]
>
Cc: Ron Minnich <
[email protected]
>
Cc: Latchesar Ionkov <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
fs/9p/vfs_file.c
patch
|
blob
|
history
diff --git
a/fs/9p/vfs_file.c
b/fs/9p/vfs_file.c
index 7a3399767570b9077f08a39eeb57c36071bea8d4..c921ac92ea4c2dd7f28ff3bfae107fb1188946bf 100644
(file)
--- 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: