xfs: extent free log intent cleanups [v3.0 2/4]

This series cleans up some warts in the extent freeing log intent code.
 We start by acknowledging that this mechanism does not have anything to
 do with the bmap code by moving it to xfs_alloc.c and giving the
 function a more descriptive name.  Then we clean up the tracepoints and
 the _finish_one call paths to pass the intent structure around.  This
 reduces the overhead when the tracepoints are disabled and will make
 things much cleaner when we start adding realtime support in the next
 patch.  I also incorporated a bunch of cleanups from Christoph Hellwig.
 
 With a bit of luck, this should all go splendidly.
 
 Signed-off-by: Darrick J. Wong <djwong@kernel.org>
 -----BEGIN PGP SIGNATURE-----
 
 iHUEABYKAB0WIQQ2qTKExjcn+O1o2YRKO3ySh0YRpgUCZoRK8QAKCRBKO3ySh0YR
 pvVaAP0XHwmK3MkBugz+kvEZ1IEtH3CoIZqU4q7sV/RqFyq69gEAzif/Qv/Cxpes
 vTx1yKcl8azIChC5P7VUw394CyniEQc=
 =nSoY
 -----END PGP SIGNATURE-----

Merge tag 'extfree-intent-cleanups-6.11_2024-07-02' of https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux into xfs-6.11-mergeB

xfs: extent free log intent cleanups

This series cleans up some warts in the extent freeing log intent code.
We start by acknowledging that this mechanism does not have anything to
do with the bmap code by moving it to xfs_alloc.c and giving the
function a more descriptive name.  Then we clean up the tracepoints and
the _finish_one call paths to pass the intent structure around.  This
reduces the overhead when the tracepoints are disabled and will make
things much cleaner when we start adding realtime support in the next
patch.  I also incorporated a bunch of cleanups from Christoph Hellwig.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>

* tag 'extfree-intent-cleanups-6.11_2024-07-02' of https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux:
  xfs: move xfs_extent_free_defer_add to xfs_extfree_item.c
  xfs: remove xfs_defer_agfl_block
  xfs: remove duplicate asserts in xfs_defer_extent_free
  xfs: factor out a xfs_efd_add_extent helper
  xfs: reuse xfs_extent_free_cancel_item
  xfs: add a xefi_entry helper
  xfs: pass the fsbno to xfs_perag_intent_get
  xfs: convert "skip_discard" to a proper flags bitset
  xfs: clean up extent free log intent item tracepoint callsites
This commit is contained in:
Chandan Babu R 2024-07-04 12:28:42 +05:30
commit 06e4e940c5
20 changed files with 141 additions and 192 deletions