mm: add filemap_fdatawait_range_keep_errors()
authorRoss Zwisler <zwisler@chromium.org>
Thu, 20 Jun 2019 21:05:37 +0000 (17:05 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 28 Jul 2019 06:29:29 +0000 (08:29 +0200)
commit4becd6c11e9a0be4ab8af7b28e9bbc01288da014
tree567fcc48fd1577ebb7f852ebdc60a730accd8360
parentc9ea4620a37f544e46cead4e276b4f273141f08a
mm: add filemap_fdatawait_range_keep_errors()

commit aa0bfcd939c30617385ffa28682c062d78050eba upstream.

In the spirit of filemap_fdatawait_range() and
filemap_fdatawait_keep_errors(), introduce
filemap_fdatawait_range_keep_errors() which both takes a range upon
which to wait and does not clear errors from the address space.

Signed-off-by: Ross Zwisler <zwisler@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Jan Kara <jack@suse.cz>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/fs.h
mm/filemap.c