diff options
| author | Christoph Hellwig <[email protected]> | 2016-09-19 10:12:45 +1000 |
|---|---|---|
| committer | Dave Chinner <[email protected]> | 2016-09-19 10:12:45 +1000 |
| commit | 5f4e5752a8a3a72c79514def2ad9fc7cd410ce2e (patch) | |
| tree | 943edac57e87caabeaece086af13c8a0c6cef60f /include/linux | |
| parent | ea78d80866ce375defb2fdd1c8a3aafec95e0f85 (diff) | |
fs: add iomap_file_dirty
Originally-From: Christoph Hellwig <[email protected]>
This function uses the iomap infrastructure to re-write all pages
in a given range. This is useful for doing a copy-up of COW ranges,
and might be useful for scrubbing in the future.
Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Dave Chinner <[email protected]>
Signed-off-by: Dave Chinner <[email protected]>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/iomap.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/iomap.h b/include/linux/iomap.h index 3d70ece10313..3a56212a0a8d 100644 --- a/include/linux/iomap.h +++ b/include/linux/iomap.h @@ -64,6 +64,8 @@ struct iomap_ops { ssize_t iomap_file_buffered_write(struct kiocb *iocb, struct iov_iter *from, struct iomap_ops *ops); +int iomap_file_dirty(struct inode *inode, loff_t pos, loff_t len, + struct iomap_ops *ops); int iomap_zero_range(struct inode *inode, loff_t pos, loff_t len, bool *did_zero, struct iomap_ops *ops); int iomap_truncate_page(struct inode *inode, loff_t pos, bool *did_zero, |