]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_scrub: make phase 4 go straight to fstrim if nothing to fix
authorDarrick J. Wong <djwong@kernel.org>
Wed, 18 May 2022 02:48:13 +0000 (22:48 -0400)
committerEric Sandeen <sandeen@sandeen.net>
Wed, 18 May 2022 02:48:13 +0000 (22:48 -0400)
commit26289d58bbe7b373291f222c71907e845e2a18ee
tree36aecb6391c281a689b2ec1978fdc6ff4d841b39
parent12ca67b39571f0598f34d73ae3e86381ae31caab
xfs_scrub: make phase 4 go straight to fstrim if nothing to fix

If there's nothing to repair in phase 4, there's no need to hold up the
FITRIM call to do the summary count scan that prepares us to repair
filesystem metadata.  Rearrange this a bit.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
[sandeen: fix unfixable_errors test logic thinko]
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
scrub/phase4.c