xfs: move remote symlink target read function to libxfs
authorDarrick J. Wong <djwong@kernel.org>
Thu, 22 Feb 2024 20:45:17 +0000 (12:45 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 22 Feb 2024 20:45:17 +0000 (12:45 -0800)
commit376b4f0522484f43660dab8e4e92b471863b49f9
treed88c04e01d3e2afdeca4bf90c5887642ca0b7f83
parent622d88e2ad7960b83af38dabf6b848a22a5a1c1f
xfs: move remote symlink target read function to libxfs

Move xfs_readlink_bmap_ilocked to xfs_symlink_remote.c so that the
swapext code can use it to convert a remote format symlink back to
shortform format after a metadata repair.  While we're at it, fix a
broken printf prefix.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/libxfs/xfs_symlink_remote.c
fs/xfs/libxfs/xfs_symlink_remote.h
fs/xfs/scrub/symlink.c
fs/xfs/xfs_symlink.c
fs/xfs/xfs_symlink.h