diff options
author | Ross Zwisler <zwisler@chromium.org> | 2019-06-20 17:05:37 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2019-06-20 17:05:37 -0400 |
commit | aa0bfcd939c30617385ffa28682c062d78050eba (patch) | |
tree | eab7b4e883e4045c94a24d7a1bdf13b579dc0759 /include/linux/fs.h | |
parent | c708b1c6de7f996b073bb3296af17f37881a09de (diff) | |
download | lwn-aa0bfcd939c30617385ffa28682c062d78050eba.tar.gz lwn-aa0bfcd939c30617385ffa28682c062d78050eba.zip |
mm: add filemap_fdatawait_range_keep_errors()
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
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r-- | include/linux/fs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index f7fdfe93e25d..79fec8a8413f 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -2712,6 +2712,8 @@ extern int filemap_flush(struct address_space *); extern int filemap_fdatawait_keep_errors(struct address_space *mapping); extern int filemap_fdatawait_range(struct address_space *, loff_t lstart, loff_t lend); +extern int filemap_fdatawait_range_keep_errors(struct address_space *mapping, + loff_t start_byte, loff_t end_byte); static inline int filemap_fdatawait(struct address_space *mapping) { |