]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: don't ignore compressed bio write errors
authorFilipe Manana <fdmanana@suse.com>
Tue, 7 Oct 2014 00:48:26 +0000 (01:48 +0100)
committerChris Mason <clm@fb.com>
Fri, 21 Nov 2014 01:14:26 +0000 (17:14 -0800)
commit432594f8919150b8299438d9046d3c588d3b6af0
treec55af204cb18c4fe3679dd2a06a19b78618a5a76
parent6134e0098f20fa35bc750c3a5e082e67cb21fb41
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 <fdmanana@suse.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/compression.c