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:07:13 +0000 (22:07 +0100)
commit5903fc6477b1aed7db1165a7f328948e6ef93ef1
treed0e34beb0170524ed8a47ec887d29f1ee412cd9b
parent82f71b8bc05c6866b7dfae96ebca5ee102f76afa
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