[GIT PULL 18/18] xfs: clean up symbolic link code

Darrick J. Wong
2024-02-24T01:33:39Z

The following changes since commit 6c8127e93e3ac9c2cf6a13b885dd2d057b7e7d50:

xfs: xfs_bmap_finish_one should map unwritten extents properly (2024-02-22 12:45:00 -0800)

are available in the Git repository at:

https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git tags/symlink-cleanups-6.9_2024-02-23

for you to fetch changes up to b8102b61f7b8929ad8043e4574a1e26276398041:

xfs: move symlink target write function to libxfs (2024-02-22 12:52:37 -0800)

----------------------------------------------------------------
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>

----------------------------------------------------------------
Darrick J. Wong (3):
xfs: move xfs_symlink_remote.c declarations to xfs_symlink_remote.h
xfs: move remote symlink target read function to libxfs
xfs: move symlink target write function to libxfs

fs/xfs/libxfs/xfs_bmap.c | 1 +
fs/xfs/libxfs/xfs_inode_fork.c | 1 +
fs/xfs/libxfs/xfs_shared.h | 13 ----
fs/xfs/libxfs/xfs_symlink_remote.c | 155 ++++++++++++++++++++++++++++++++++++-
fs/xfs/libxfs/xfs_symlink_remote.h | 26 +++++++
fs/xfs/scrub/inode_repair.c | 1 +
fs/xfs/scrub/symlink.c | 3 +-
fs/xfs/xfs_symlink.c | 146 ++--------------------------------
fs/xfs/xfs_symlink.h | 1 -
9 files changed, 192 insertions(+), 155 deletions(-)
create mode 100644 fs/xfs/libxfs/xfs_symlink_remote.h