aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/iomap.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2016-09-19 10:12:45 +1000
committerDave Chinner <david@fromorbit.com>2016-09-19 10:12:45 +1000
commit5f4e5752a8a3a72c79514def2ad9fc7cd410ce2e (patch)
tree943edac57e87caabeaece086af13c8a0c6cef60f /include/linux/iomap.h
parentxfs: track log done items directly in the deferred pending work item (diff)
downloadlinux-dev-5f4e5752a8a3a72c79514def2ad9fc7cd410ce2e.tar.xz
linux-dev-5f4e5752a8a3a72c79514def2ad9fc7cd410ce2e.zip
fs: add iomap_file_dirty
Originally-From: Christoph Hellwig <hch@lst.de> 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 <hch@lst.de> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'include/linux/iomap.h')
-rw-r--r--include/linux/iomap.h2
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,