mm: Wait for writeback when grabbing pages to begin a write
authorDarrick J. Wong <djwong@us.ibm.com>
Fri, 27 May 2011 19:23:34 +0000 (12:23 -0700)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 28 May 2011 05:03:21 +0000 (01:03 -0400)
commit3d08bcc887a1c8d12be8d81f747ffa2e8a44b67b
tree258f4e3d384e451c921c5e0c503fd368f236a20a
parent98702467f829177b3993f17da9fe5c202d160e5e
mm: Wait for writeback when grabbing pages to begin a write

When grabbing a page for a buffered IO write, the mm should wait for writeback
on the page to complete so that the page does not become writable during the IO
operation.  This change is needed to provide page stability during writes for
all filesystems.

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