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.
Showing the changes to include/linux (1 of 2 files). Show all
Unified · Split
| @@ -2712,6 +2712,8 @@ extern int filemap_flush(struct address_space *); · 2711 unmodified lines | |||
| 2712 | extern int filemap_fdatawait_keep_errors(struct address_space *mapping); | 2712 | extern int filemap_fdatawait_keep_errors(struct address_space *mapping); |
| 2713 | extern int filemap_fdatawait_range(struct address_space *, loff_t lstart, | 2713 | extern int filemap_fdatawait_range(struct address_space *, loff_t lstart, |
| 2714 | loff_t lend); | 2714 | loff_t lend); |
| 2715 | extern int filemap_fdatawait_range_keep_errors(struct address_space *mapping, | ||
| 2716 | loff_t start_byte, loff_t end_byte); | ||
| 2715 | 2717 | ||
| 2716 | static inline int filemap_fdatawait(struct address_space *mapping) | 2718 | static inline int filemap_fdatawait(struct address_space *mapping) |
| 2717 | { | 2719 | { |