Skip to contentSkip to conversation

xfs: remove unused variable from xfs_dir2_block_lookup_int

PATCH NAK Darrick J. Wong 1 participant 2 messages Nov 13, 2019 XFS filesystem

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xfs: remove unused variable from xfs_dir2_block_lookup_int

From: Darrick J. Wong <[email protected]>

Remove an unused variable.

---
 fs/xfs/libxfs/xfs_dir2_block.c |    2 --
 1 file changed, 2 deletions(-)
fs/xfs/libxfs/xfs_dir2_block.c +0 -2
index f9d83205659e..328a8dd53a22 100644
@@ -660,13 +660,11 @@ xfs_dir2_block_lookup_int(
 	int			high;		/* binary search high index */
 	int			low;		/* binary search low index */
 	int			mid;		/* binary search current idx */
-	xfs_mount_t		*mp;		/* filesystem mount point */
 	xfs_trans_t		*tp;		/* transaction pointer */
 	enum xfs_dacmp		cmp;		/* comparison result */
 
 	dp = args->dp;
 	tp = args->trans;
-	mp = dp->i_mount;
 
 	error = xfs_dir3_block_read(tp, dp, &bp);
 	if (error)
author NAK
#1 lore raw
Quoted 3 lines · Darrick J. Wong

From: Darrick J. Wong <[email protected]>

Remove an unused variable.

NAK, I'll just roll this into the devirtualize m_dirops patch.

--D

Quoted 23 lines
---
 fs/xfs/libxfs/xfs_dir2_block.c |    2 --
 1 file changed, 2 deletions(-)
fs/xfs/libxfs/xfs_dir2_block.c +0 -2
index f9d83205659e..328a8dd53a22 100644
@@ -660,13 +660,11 @@ xfs_dir2_block_lookup_int(
 	int			high;		/* binary search high index */
 	int			low;		/* binary search low index */
 	int			mid;		/* binary search current idx */
-	xfs_mount_t		*mp;		/* filesystem mount point */
 	xfs_trans_t		*tp;		/* transaction pointer */
 	enum xfs_dacmp		cmp;		/* comparison result */
 
 	dp = args->dp;
 	tp = args->trans;
-	mp = dp->i_mount;
 
 	error = xfs_dir3_block_read(tp, dp, &bp);
 	if (error)