[PATCH v2] xfs: Fix duplicate assignment in xfs_alloc_read_agf.
From: Siddh Raman Pant
Date: Wed Oct 21 2026 - 08:38:59 EST
Probably an (harmless) error in copy-paste.
Fixes: db6a2274162d ("xfs: catch stale AGF/AGF metadata")
Cc: stable@xxxxxxxxxxxxxxx # v5.10
Reviewed-by: "Darrick J. Wong" <djwong@xxxxxxxxxx>
Signed-off-by: Siddh Raman Pant <siddh.raman.pant@xxxxxxxxxx>
---
fs/xfs/libxfs/xfs_alloc.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/fs/xfs/libxfs/xfs_alloc.c b/fs/xfs/libxfs/xfs_alloc.c
index f762dcce8d13..0ffa82400007 100644
--- a/fs/xfs/libxfs/xfs_alloc.c
+++ b/fs/xfs/libxfs/xfs_alloc.c
@@ -3461,7 +3461,6 @@ xfs_alloc_read_agf(
if (!xfs_is_shutdown(pag_mount(pag))) {
bool ok = true;
- ok &= pag->pagf_freeblks == be32_to_cpu(agf->agf_freeblks);
ok &= pag->pagf_freeblks == be32_to_cpu(agf->agf_freeblks);
ok &= pag->pagf_btreeblks == be32_to_cpu(agf->agf_btreeblks);
ok &= pag->pagf_flcount == be32_to_cpu(agf->agf_flcount);
--
2.53.0
Attachment:
signature.asc
Description: This is a digitally signed message part