]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
xfs: Switch to iomap for SEEK_HOLE / SEEK_DATA
authorChristoph Hellwig <hch@lst.de>
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)
commit9b2970aacfd9aa5d9bad377a554a002b398f882e
tree0e68098eb59d45e7df44d0b220ecfe073063ec51
parent0ed3b0d45fd39142e418220f518c8959c1a5f596
xfs: Switch to iomap for SEEK_HOLE / SEEK_DATA

Switch to the iomap_seek_hole and iomap_seek_data helpers for
implementing lseek SEEK_HOLE / SEEK_DATA, and remove all the
code that isn't needed any more.

Based on patches from Andreas Gruenbacher <agruenba@redhat.com>.

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/xfs/xfs_file.c
fs/xfs/xfs_inode.h