diff options
author | Darrick J. Wong <djwong@kernel.org> | 2024-02-22 23:48:20 +0300 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2024-02-22 23:52:37 +0300 |
commit | b8102b61f7b8929ad8043e4574a1e26276398041 (patch) | |
tree | 96bae8a384cbe27b4962153f9bda2452caa0e1d6 /fs/xfs/libxfs/xfs_symlink_remote.h | |
parent | 376b4f0522484f43660dab8e4e92b471863b49f9 (diff) | |
download | linux-b8102b61f7b8929ad8043e4574a1e26276398041.tar.xz |
xfs: move symlink target write function to libxfs
Move xfs_symlink_write_target to xfs_symlink_remote.c so that kernel and
mkfs can share the same function.
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 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/xfs/libxfs/xfs_symlink_remote.h b/fs/xfs/libxfs/xfs_symlink_remote.h index bb83a8b8dfa6..a63bd38ae4fa 100644 --- a/fs/xfs/libxfs/xfs_symlink_remote.h +++ b/fs/xfs/libxfs/xfs_symlink_remote.h @@ -19,5 +19,8 @@ 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); +int xfs_symlink_write_target(struct xfs_trans *tp, struct xfs_inode *ip, + const char *target_path, int pathlen, xfs_fsblock_t fs_blocks, + uint resblks); #endif /* __XFS_SYMLINK_REMOTE_H */ |