]> www.infradead.org Git - users/hch/xfs.git/commit
xfs: fix superfluous clearing of info->low in __xfs_getfsmap_datadev
authorChristoph Hellwig <hch@lst.de>
Sun, 15 Sep 2024 04:49:40 +0000 (06:49 +0200)
committerChristoph Hellwig <hch@lst.de>
Fri, 20 Sep 2024 12:06:27 +0000 (14:06 +0200)
commiteee6fb2d301f75af615fb79e06ebf0f9489dcbe9
tree6c059b4aa41d8d3c9bf0a103806a66046e28013c
parent85734866a58593cfd40d3d615b9a31fe442eb610
xfs: fix superfluous clearing of info->low in __xfs_getfsmap_datadev

The for_each_perag helpers update the agno passed in for each iteration,
and thus the "if (pag->pag_agno == start_ag)" check will always be true.

Add another variable for the loop iterator so that the field is only
cleared after the first iteration.

Signed-off-by: Christoph Hellwig <hch@lst.de>
fs/xfs/xfs_fsmap.c