]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit95168c07308cd895edd21a9824111f894b7f3926
treea6de697fe48d8db493847d55d85d19ff4632e9fe
parentc898ed1f772a197f603b921f192be2ec1076cf9e
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