xfs: introduce xfs_bmapi_remap
authorChristoph Hellwig <hch@lst.de>
Tue, 11 Apr 2017 23:45:55 +0000 (16:45 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 25 Apr 2017 16:40:39 +0000 (09:40 -0700)
commit6ebd5a4413e2afd1b1129135e1cf4a84092550e2
treea6de697fe48d8db493847d55d85d19ff4632e9fe
parent6d04558f9fa9d16c4aba7243030f22ef0c1bbf32
xfs: introduce xfs_bmapi_remap

Add a new helper to be used for reflink extent list additions instead of
funneling them through xfs_bmapi_write and overloading the firstblock
member in struct xfs_bmalloca and struct xfs_alloc_args.

With some small changes to xfs_bmap_remap_alloc this also means we do
not need a xfs_bmalloca structure for this case at all.

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/libxfs/xfs_bmap.c