xfs: rename xfs_bmap_add_free to xfs_free_extent_later
authorDarrick J. Wong <djwong@kernel.org>
Tue, 12 Oct 2021 21:17:01 +0000 (14:17 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Fri, 22 Oct 2021 23:04:36 +0000 (16:04 -0700)
commitc201d9ca5392b20f04882848a071025b0e194c17
tree80358804a10c603284b5a4a48f0d05ad0b04b744
parentf3c799c22c661e181c71a0d9914fc923023f65fb
xfs: rename xfs_bmap_add_free to xfs_free_extent_later

xfs_bmap_add_free isn't a block mapping function; it schedules deferred
freeing operations for a later point in a compound transaction chain.
While it's primarily used by bunmapi, its use has expanded beyond that.
Move it to xfs_alloc.c and rename the function since it's now general
freeing functionality.  Bring the slab cache bits in line with the
way we handle the other intent items.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Chandan Babu R <chandan.babu@oracle.com>
12 files changed:
fs/xfs/libxfs/xfs_ag.c
fs/xfs/libxfs/xfs_alloc.c
fs/xfs/libxfs/xfs_alloc.h
fs/xfs/libxfs/xfs_bmap.c
fs/xfs/libxfs/xfs_bmap.h
fs/xfs/libxfs/xfs_bmap_btree.c
fs/xfs/libxfs/xfs_defer.c
fs/xfs/libxfs/xfs_ialloc.c
fs/xfs/libxfs/xfs_refcount.c
fs/xfs/xfs_extfree_item.c
fs/xfs/xfs_reflink.c
fs/xfs/xfs_super.c