]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
repair: parallelise uncertin inode processing in phase 3
authorDave Chinner <dchinner@redhat.com>
Tue, 9 Feb 2016 00:12:45 +0000 (11:12 +1100)
committerDave Chinner <david@fromorbit.com>
Tue, 9 Feb 2016 00:12:45 +0000 (11:12 +1100)
commit8100dd790a40271da69cfaa56ab94603bea854f8
tree0b36b63e62e843e5d1524188136145b1065c226a
parente161d4a895adccdf11eea65eb62f8d998eb1860e
repair: parallelise uncertin inode processing in phase 3

This can take a long time when there are millions of uncertain inodes in badly
broken filesystems. THe processing is per-ag, the data structures are all
per-ag, and the load is mostly CPU time spent checking CRCs on each
uncertaini inode. Parallelising reduced the runtime of this phase on a badly
broken filesytem from ~30 minutes to under 5 miniutes.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
repair/phase3.c
repair/protos.h
repair/xfs_repair.c