]> 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)
commitf969d1ff28e37e3cc163b0bc7be0a55f1d97ac47
treea88d42e2d7dcae8ce4ab76f61f0711bab004c6b2
parent327f0f69037d1c6da1122317d8dbe1dcf7b8b62a
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