ext4: track writeback errors using the generic tracking infrastructure
authorTheodore Ts'o <tytso@mit.edu>
Mon, 31 Dec 2018 05:11:07 +0000 (00:11 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Jan 2019 21:04:36 +0000 (22:04 +0100)
commitbb80ad0dc3924f193eaa752e9da2e9384f58e627
tree93a26551408315e703c982aee3abe76bc33ad0f1
parentda38a1b47b02b01f96976bbf75466bc1ae519d76
ext4: track writeback errors using the generic tracking infrastructure

commit 95cb67138746451cc84cf8e516e14989746e93b0 upstream.

We already using mapping_set_error() in fs/ext4/page_io.c, so all we
need to do is to use file_check_and_advance_wb_err() when handling
fsync() requests in ext4_sync_file().

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ext4/fsync.c