Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

xfs: remove unused xfs_mount arg from xfs_symlink_hdr_ok()

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>

authored by

Eric Sandeen and committed by
Dave Chinner
bda65ef8 fd9fdba6

+2 -3
+1 -1
fs/xfs/xfs_shared.h
··· 238 238 int xfs_symlink_blocks(struct xfs_mount *mp, int pathlen); 239 239 int xfs_symlink_hdr_set(struct xfs_mount *mp, xfs_ino_t ino, uint32_t offset, 240 240 uint32_t size, struct xfs_buf *bp); 241 - bool xfs_symlink_hdr_ok(struct xfs_mount *mp, xfs_ino_t ino, uint32_t offset, 241 + bool xfs_symlink_hdr_ok(xfs_ino_t ino, uint32_t offset, 242 242 uint32_t size, struct xfs_buf *bp); 243 243 void xfs_symlink_local_to_remote(struct xfs_trans *tp, struct xfs_buf *bp, 244 244 struct xfs_inode *ip, struct xfs_ifork *ifp);
+1 -1
fs/xfs/xfs_symlink.c
··· 92 92 93 93 cur_chunk = bp->b_addr; 94 94 if (xfs_sb_version_hascrc(&mp->m_sb)) { 95 - if (!xfs_symlink_hdr_ok(mp, ip->i_ino, offset, 95 + if (!xfs_symlink_hdr_ok(ip->i_ino, offset, 96 96 byte_cnt, bp)) { 97 97 error = EFSCORRUPTED; 98 98 xfs_alert(mp,