]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_scrub: remove shadow var from run_scrub_phases()
authorEric Sandeen <sandeen@redhat.com>
Wed, 17 Oct 2018 18:25:11 +0000 (13:25 -0500)
committerEric Sandeen <sandeen@redhat.com>
Wed, 17 Oct 2018 18:25:11 +0000 (13:25 -0500)
commit4ace28d7b4579237159893ab626ce029c63a8ccb
tree320038b48b80cd8a3561a02513906905bc447642
parent925638b609ad428c160a8fb5e9573a09afff5ba8
xfs_scrub: remove shadow var from run_scrub_phases()

The local nr_threads shadows a global var of the same name.
Use a local variable to avoid confusion (even though estimate_work()
may simply fill in the value of the global...)

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
scrub/xfs_scrub.c