]> git.neil.brown.name Git - history.git/commit
[PATCH] cont_prepare_write() fix
authorHirofumi Ogawa <hirofumi@mail.parknet.co.jp>
Wed, 1 Dec 2004 09:09:25 +0000 (01:09 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 1 Dec 2004 09:09:25 +0000 (01:09 -0800)
commit26a4480e195e69c53d295746889619f9259e5369
treecfbddf1e21c47e3f81530067eca44a1e2600b35b
parent68569b74eb055cf54c8f08a15b99d5b53de29a96
[PATCH] cont_prepare_write() fix

When cont_prepare_write() is padding out the "hole" with zeroed pages it
doesn't increase i_size at the same time.  If writeback comes in during the
execution of cont_prepare_write(), block_write_full_page() will think that
these pages are outside i_size and will just clean the page without writing
it.

Fix that up by using generic_commit_write(), which will advance i_size for
each page as it is dirtied.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/buffer.c