From: Jan Kara Date: Tue, 17 Oct 2006 07:10:19 +0000 (-0700) Subject: [PATCH] Fix IO error reporting on fsync() X-Git-Tag: v2.6.19-rc3~169 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58ff407bee5a55f9c1188a3f9d70ffc79485183c;p=pandora-kernel.git [PATCH] Fix IO error reporting on fsync() When IO error happens on metadata buffer, buffer is freed from memory and later fsync() is called, filesystems like ext2 fail to report EIO. We solve the problem by introducing a pointer to associated address space into the buffer_head. When a buffer is removed from a list of metadata buffers associated with an address space, IO error is transferred from the buffer to the address space, so that fsync can later report it. Signed-off-by: Jan Kara Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed