]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: rename xfs_bmap_add_free to xfs_free_extent_later
authorDarrick J. Wong <djwong@kernel.org>
Thu, 6 Jan 2022 22:13:23 +0000 (14:13 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 20 Jan 2022 00:02:53 +0000 (16:02 -0800)
commitfcee0417a550206c35b04efb22658a65c3704633
treedce465ba43ea9179cd825641f20deaf3c7639500
parent8899e894db47c3b4dcce389501ec2b9e3745f7d0
xfs: rename xfs_bmap_add_free to xfs_free_extent_later

Source kernel commit: c201d9ca5392b20f04882848a071025b0e194c17

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>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
12 files changed:
libxfs/defer_item.c
libxfs/init.c
libxfs/libxfs_api_defs.h
libxfs/xfs_ag.c
libxfs/xfs_alloc.c
libxfs/xfs_alloc.h
libxfs/xfs_bmap.c
libxfs/xfs_bmap.h
libxfs/xfs_bmap_btree.c
libxfs/xfs_defer.c
libxfs/xfs_ialloc.c
libxfs/xfs_refcount.c