From: Filipe Manana Date: Tue, 7 Oct 2014 00:48:26 +0000 (+0100) Subject: Btrfs: don't ignore compressed bio write errors X-Git-Tag: omap-for-v3.19/fixes-rc1~111^2~42 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7bdcefc103849386ef7f3029dd94ecfd4a822a67;p=pandora-kernel.git Btrfs: don't ignore compressed bio write errors Our compressed bio write end callback was essentially ignoring the error parameter. When a write error happens, it must pass a value of 0 to the inode's write_page_end_io_hook callback, SetPageError on the respective pages and set AS_EIO in the inode's mapping flags, so that a call to filemap_fdatawait_range() / filemap_fdatawait() can find out that errors happened (we surely don't want silent failures on fsync for example). Signed-off-by: Filipe Manana Signed-off-by: Chris Mason --- Reading git-diff-tree failed