xfs: make xfs_bmbt_to_iomap more useful
authorChristoph Hellwig <hch@lst.de>
Mon, 18 Feb 2019 17:38:46 +0000 (09:38 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 21 Feb 2019 15:55:07 +0000 (07:55 -0800)
commit16be1433737ee46f88da57d47f594c4fc1376538
tree8f4ff2caae746ae965a7fca52b7a1e6c8a4620bd
parent15baadf72cedc2a09ea792c1fc59451502b55da2
xfs: make xfs_bmbt_to_iomap more useful

Move checking for invalid zero blocks and setting of various iomap flags
into this helper.  Also make it deal with "raw" delalloc extents to
avoid clutter in the callers.

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_iomap.c
fs/xfs/xfs_iomap.h
fs/xfs/xfs_pnfs.c