From: Jan Kara Date: Wed, 16 Dec 2009 00:46:49 +0000 (-0800) Subject: ext2: report metadata errors during fsync X-Git-Tag: v2.6.33-rc1~71^2~105 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48bde86df0acb9f53c4fd0908d023ecae962762f;p=pandora-kernel.git ext2: report metadata errors during fsync When an IO error happens while writing metadata buffers, we should better report it and call ext2_error since the filesystem is probably no longer consistent. Sometimes such IO errors happen while flushing thread does background writeback, the buffer gets later evicted from memory, and thus the only trace of the error remains as AS_EIO bit set in blockdevice's mapping. So we check this bit in ext2_fsync and report the error although we cannot be really sure which buffer we failed to write. Signed-off-by: Jan Kara Cc: Chris Mason Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed