Эх сурвалжийг харах

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>
Eric Sandeen 11 жил өмнө
parent
commit
bda65ef8a8

+ 1 - 1
fs/xfs/xfs_shared.h

@@ -238,7 +238,7 @@ int	xfs_log_calc_minimum_size(struct xfs_mount *);
 int xfs_symlink_blocks(struct xfs_mount *mp, int pathlen);
 int xfs_symlink_blocks(struct xfs_mount *mp, int pathlen);
 int xfs_symlink_hdr_set(struct xfs_mount *mp, xfs_ino_t ino, uint32_t offset,
 int xfs_symlink_hdr_set(struct xfs_mount *mp, xfs_ino_t ino, uint32_t offset,
 			uint32_t size, struct xfs_buf *bp);
 			uint32_t size, struct xfs_buf *bp);
-bool xfs_symlink_hdr_ok(struct xfs_mount *mp, xfs_ino_t ino, uint32_t offset,
+bool xfs_symlink_hdr_ok(xfs_ino_t ino, uint32_t offset,
 			uint32_t size, struct xfs_buf *bp);
 			uint32_t size, struct xfs_buf *bp);
 void xfs_symlink_local_to_remote(struct xfs_trans *tp, struct xfs_buf *bp,
 void xfs_symlink_local_to_remote(struct xfs_trans *tp, struct xfs_buf *bp,
 				 struct xfs_inode *ip, struct xfs_ifork *ifp);
 				 struct xfs_inode *ip, struct xfs_ifork *ifp);

+ 1 - 1
fs/xfs/xfs_symlink.c

@@ -92,7 +92,7 @@ xfs_readlink_bmap(
 
 
 		cur_chunk = bp->b_addr;
 		cur_chunk = bp->b_addr;
 		if (xfs_sb_version_hascrc(&mp->m_sb)) {
 		if (xfs_sb_version_hascrc(&mp->m_sb)) {
-			if (!xfs_symlink_hdr_ok(mp, ip->i_ino, offset,
+			if (!xfs_symlink_hdr_ok(ip->i_ino, offset,
 							byte_cnt, bp)) {
 							byte_cnt, bp)) {
 				error = EFSCORRUPTED;
 				error = EFSCORRUPTED;
 				xfs_alert(mp,
 				xfs_alert(mp,

+ 0 - 1
fs/xfs/xfs_symlink_remote.c

@@ -80,7 +80,6 @@ xfs_symlink_hdr_set(
  */
  */
 bool
 bool
 xfs_symlink_hdr_ok(
 xfs_symlink_hdr_ok(
-	struct xfs_mount	*mp,
 	xfs_ino_t		ino,
 	xfs_ino_t		ino,
 	uint32_t		offset,
 	uint32_t		offset,
 	uint32_t		size,
 	uint32_t		size,