aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2023-05-31 11:09:21 +0200
committerCarlos Maiolino <cem@kernel.org>2023-06-09 10:27:50 +0200
commit725589ab475822f1580f152338a1233eddd6e969 (patch)
treee518e67642ecea8b86d14e40f100d66c290e1352
parentd99b890096ac527b6545ccf6e9a832c27d851b9d (diff)
downloadxfsprogs-dev-725589ab475822f1580f152338a1233eddd6e969.tar.gz
xfs: remove pointless shadow variable from xfs_difree_inobt
Source kernel commit: cc1207662d1a08e253520654e956f5e699826caa In xfs_difree_inobt, the pag passed in was previously used to look up the AGI buffer. There's no need to extract it again, so remove the shadow variable and shut up -Wshadow. Signed-off-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Carlos Maiolino <cem@kernel.org>
-rw-r--r--libxfs/xfs_ialloc.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/libxfs/xfs_ialloc.c b/libxfs/xfs_ialloc.c
index 63c5b50bf6..a8c72c0cb4 100644
--- a/libxfs/xfs_ialloc.c
+++ b/libxfs/xfs_ialloc.c
@@ -1973,8 +1973,6 @@ xfs_difree_inobt(
*/
if (!xfs_has_ikeep(mp) && rec.ir_free == XFS_INOBT_ALL_FREE &&
mp->m_sb.sb_inopblock <= XFS_INODES_PER_CHUNK) {
- struct xfs_perag *pag = agbp->b_pag;
-
xic->deleted = true;
xic->first_ino = XFS_AGINO_TO_INO(mp, pag->pag_agno,
rec.ir_startino);