fs: block_page_mkwrite should wait for writeback to finish
authorDarrick J. Wong <djwong@us.ibm.com>
Fri, 27 May 2011 19:23:41 +0000 (12:23 -0700)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 28 May 2011 05:03:21 +0000 (01:03 -0400)
commitd76ee18a8551e33ad7dbd55cac38bc7b094f3abb
treeb65a21c32f7ebd9213886a3a9181ed946ba69777
parent3d08bcc887a1c8d12be8d81f747ffa2e8a44b67b
fs: block_page_mkwrite should wait for writeback to finish

For filesystems such as nilfs2 and xfs that use block_page_mkwrite, modify that
function to wait for pending writeback before allowing the page to become
writable.  This is needed to stabilize pages during writeback for those two
filesystems.

Signed-off-by: Darrick J. Wong <djwong@us.ibm.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/buffer.c