]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: wait for writeback to complete while making pages writable
authorDarrick J. Wong <djwong@us.ibm.com>
Wed, 18 May 2011 17:55:20 +0000 (13:55 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 18 May 2011 17:55:20 +0000 (13:55 -0400)
commitefe712fa459bb6eb32e969e7e5f6c190e0c554b6
tree9d45cdd242f399837fd208c39e964ef022703e54
parenta81e1a5300ab521b748c3c2f73465a0bd93cd985
ext4: wait for writeback to complete while making pages writable

In order to stabilize pages during disk writes, ext4_page_mkwrite must
wait for writeback operations to complete before making a page
writable.  Furthermore, the function must return locked pages, and
recheck the writeback status if the page lock is ever dropped.  The
"someone could wander in" part of this patch was suggested by Chris
Mason.

Signed-off-by: Darrick J. Wong <djwong@us.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/inode.c