]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: remove xfs_bmap_remap_alloc
authorChristoph Hellwig <hch@lst.de>
Tue, 11 Apr 2017 23:45:56 +0000 (16:45 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 25 Apr 2017 16:40:40 +0000 (09:40 -0700)
commit5565f81572c0dd0f67b852cc92e136426dcc790a
treea88d42e2d7dcae8ce4ab76f61f0711bab004c6b2
parent95168c07308cd895edd21a9824111f894b7f3926
xfs: remove xfs_bmap_remap_alloc

The main thing that xfs_bmap_remap_alloc does is fixing the AGFL, similar
to what we do in the space allocator.  But the reflink code doesn't touch
the allocation btree unlike the normal space allocator, so we couldn't
care less about the state of the AGFL.

So remove xfs_bmap_remap_alloc and just handle the di_nblocks update in
the caller.

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
fs/xfs/xfs_trace.h