From: Qu Fuping Date: Sat, 4 Jun 2005 22:43:29 +0000 (-0700) Subject: [PATCH] mpage_end_io_write() I/O error handling fix X-Git-Tag: v2.6.12-rc6~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=854715be73b221596c7127d4042e1120d4539e19;p=pandora-kernel.git [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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed