ext4: note the error in ext4_end_bio()
authorMatthew Wilcox <willy@linux.intel.com>
Mon, 7 Apr 2014 14:54:20 +0000 (10:54 -0400)
committerBen Hutchings <ben@decadent.org.uk>
Sun, 18 May 2014 13:58:03 +0000 (14:58 +0100)
commit81692a1db0ee5276e3dcae9335346ba9712b93ce
tree8024239abee3c84173e4f95f5176c6ca97cb7402
parent5e76e584d0b4e24eed04871d807b3081e97bcfb2
ext4: note the error in ext4_end_bio()

commit 9503c67c93ed0b95ba62d12d1fd09da6245dbdd6 upstream.

ext4_end_bio() currently throws away the error that it receives.  Chances
are this is part of a spate of errors, one of which will end up getting
the error returned to userspace somehow, but we shouldn't take that risk.
Also print out the errno to aid in debug.

Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Reviewed-by: Jan Kara <jack@suse.cz>
[bwh: Backported to 3.2: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
fs/ext4/page-io.c