xfs: make xfs_bmbt_to_iomap available outside of xfs_pnfs.c
authorChristoph Hellwig <hch@lst.de>
Mon, 20 Jun 2016 23:52:47 +0000 (09:52 +1000)
committerDave Chinner <david@fromorbit.com>
Mon, 20 Jun 2016 23:52:47 +0000 (09:52 +1000)
commit3b3dce05279b97525741b7949208017307e05621
tree0e57f8c1489b1fba16bc20e85ad9833c49882fd0
parent8be9f564d25e7adc582f9f3689040ce5aa6f1f5b
xfs: make xfs_bmbt_to_iomap available outside of xfs_pnfs.c

And ensure it works for RT subvolume files an set the block device,
both of which will be needed to be able to use the function in the
buffered write path.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_iomap.c
fs/xfs/xfs_iomap.h
fs/xfs/xfs_pnfs.c