]> git.kernelconcepts.de Git - karo-tx-linux.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)
commitbf8eadbacb24e321c99bbdd901589942712810d1
treea88d42e2d7dcae8ce4ab76f61f0711bab004c6b2
parent6ebd5a4413e2afd1b1129135e1cf4a84092550e2
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