diff options
author | Darrick J. Wong <djwong@kernel.org> | 2024-02-22 23:45:17 +0300 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2024-02-22 23:45:17 +0300 |
commit | 376b4f0522484f43660dab8e4e92b471863b49f9 (patch) | |
tree | d88c04e01d3e2afdeca4bf90c5887642ca0b7f83 /fs/xfs/libxfs/xfs_symlink_remote.h | |
parent | 622d88e2ad7960b83af38dabf6b848a22a5a1c1f (diff) | |
download | linux-376b4f0522484f43660dab8e4e92b471863b49f9.tar.xz |
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>
Diffstat (limited to 'fs/xfs/libxfs/xfs_symlink_remote.h')
-rw-r--r-- | fs/xfs/libxfs/xfs_symlink_remote.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/xfs/libxfs/xfs_symlink_remote.h b/fs/xfs/libxfs/xfs_symlink_remote.h index c6f621a0ec05..bb83a8b8dfa6 100644 --- a/fs/xfs/libxfs/xfs_symlink_remote.h +++ b/fs/xfs/libxfs/xfs_symlink_remote.h @@ -18,5 +18,6 @@ bool xfs_symlink_hdr_ok(xfs_ino_t ino, uint32_t offset, void xfs_symlink_local_to_remote(struct xfs_trans *tp, struct xfs_buf *bp, struct xfs_inode *ip, struct xfs_ifork *ifp); xfs_failaddr_t xfs_symlink_shortform_verify(void *sfp, int64_t size); +int xfs_symlink_remote_read(struct xfs_inode *ip, char *link); #endif /* __XFS_SYMLINK_REMOTE_H */ |