]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] mpage_end_io_write() I/O error handling fix
authorQu Fuping <fs@ercist.iscas.ac.cn>
Sat, 4 Jun 2005 22:43:29 +0000 (15:43 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sun, 5 Jun 2005 00:12:59 +0000 (17:12 -0700)
commiteeda1caa7649c0dc63ca411b5f796b3250abbc3f
treedb0ddc9d2b9db5de1a75df627ca4a0c28600e64a
parent46001b2b17dc778e8b67880d599567371c29c879
[PATCH] mpage_end_io_write() I/O error handling fix

When fsync() runs wait_on_page_writeback_range() it only inspects pages which
are actually under I/O (PAGECACHE_TAG_WRITEBACK).  If a page completed I/O
prior to wait_on_page_writeback_range() looking at it, it is supposed to have
recorded its I/O error state in the address_space.

But mpage_mpage_end_io_write() forgot to set the address_space error flag in
this case.

Signed-off-by: Qu Fuping <fs@ercist.iscas.ac.cn>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/mpage.c