vfs: Add iomap_seek_hole and iomap_seek_data helpers
authorAndreas Gruenbacher <[email protected]>
Thu, 29 Jun 2017 18:43:21 +0000 (11:43 -0700)
committerDarrick J. Wong <[email protected]>
Mon, 3 Jul 2017 05:46:13 +0000 (22:46 -0700)
commit0ed3b0d45fd39142e418220f518c8959c1a5f596
tree5c629e3654c2959be05fee0875952b419a5718a9
parent334fd34d76f237c0ee58dfc400d2c4e34d660544
vfs: Add iomap_seek_hole and iomap_seek_data helpers

Filesystems can use this for implementing lseek SEEK_HOLE / SEEK_DATA
support via iomap.

Signed-off-by: Andreas Gruenbacher <[email protected]>
[hch: split functions, coding style cleanups]
Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Darrick J. Wong <[email protected]>
Signed-off-by: Darrick J. Wong <[email protected]>
fs/iomap.c
include/linux/iomap.h