]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
vfs: Add iomap_seek_hole and iomap_seek_data helpers
authorAndreas Gruenbacher <agruenba@redhat.com>
Thu, 29 Jun 2017 18:43:21 +0000 (11:43 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
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 <agruenba@redhat.com>
[hch: split functions, coding style cleanups]
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/iomap.c
include/linux/iomap.h