Commit e4f6b1bd authored by Darrick J. Wong's avatar Darrick J. Wong Committed by Long Li
Browse files

xfs: rename xfs_bmap_add_free to xfs_free_extent_later

mainline inclusion
from mainline-v5.15-rc4
commit c201d9ca
category: bugfix
bugzilla: 188883, https://gitee.com/openeuler/kernel/issues/I76JSK
CVE: NA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=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: default avatarDarrick J. Wong <djwong@kernel.org>
Reviewed-by: default avatarChandan Babu R <chandan.babu@oracle.com>

Conflicts: fs/xfs/libxfs/xfs_ag.c
      fs/xfs/libxfs/xfs_alloc.c
      fs/xfs/libxfs/xfs_bmap.c
      fs/xfs/libxfs/xfs_bmap_btree.c
      fs/xfs/xfs_super.c
Signed-off-by: default avatarLong Li <leo.lilong@huawei.com>
parent 01b0ce5d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment