xfs: clean up symbolic link code [v29.3 18/18]

This series cleans up a few bits of the symbolic link code as needed for
 future projects.  Online repair requires the ability to commit fixed
 fork-based filesystem metadata such as directories, xattrs, and symbolic
 links atomically, so we need to rearrange the symlink code before we
 land the atomic extent swapping.
 
 Accomplish this by moving the remote symlink target block code and
 declarations to xfs_symlink_remote.[ch].
 
 This has been running on the djcloud for months with no problems.  Enjoy!
 
 Signed-off-by: Darrick J. Wong <djwong@kernel.org>
 -----BEGIN PGP SIGNATURE-----
 
 iHUEABYKAB0WIQQ2qTKExjcn+O1o2YRKO3ySh0YRpgUCZdlBYwAKCRBKO3ySh0YR
 ppvvAP0S+kTZ96zROb68pfy4xo5X0mcFvtuHQo4mc4Mu6UZf0AD+Lr/Xdnj/J9k1
 8FEV933MFzWHINeeGUpaN8zgZBCvKA0=
 =Lgry
 -----END PGP SIGNATURE-----

Merge tag 'symlink-cleanups-6.9_2024-02-23' of https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux into xfs-6.9-mergeC

xfs: clean up symbolic link code

This series cleans up a few bits of the symbolic link code as needed for
future projects.  Online repair requires the ability to commit fixed
fork-based filesystem metadata such as directories, xattrs, and symbolic
links atomically, so we need to rearrange the symlink code before we
land the atomic extent swapping.

Accomplish this by moving the remote symlink target block code and
declarations to xfs_symlink_remote.[ch].

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

* tag 'symlink-cleanups-6.9_2024-02-23' of https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux:
  xfs: move symlink target write function to libxfs
  xfs: move remote symlink target read function to libxfs
  xfs: move xfs_symlink_remote.c declarations to xfs_symlink_remote.h
This commit is contained in:
Chandan Babu R 2024-02-24 10:39:07 +05:30
commit e6469b22bd
9 changed files with 192 additions and 155 deletions