]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
repair: Protect bad inode list with mutex
authorDave Chinner <dchinner@redhat.com>
Thu, 15 Apr 2021 19:44:49 +0000 (15:44 -0400)
committerEric Sandeen <sandeen@sandeen.net>
Thu, 15 Apr 2021 19:44:49 +0000 (15:44 -0400)
commitfdfd70e7f63d6ff7af7ebff5b897700e86be7ca1
tree7646ac7767995603f9a5a7308126a653aa8e465c
parentb6af4fa8a45c2993653238d071b5b692f07b1662
repair: Protect bad inode list with mutex

To enable phase 6 parallelisation, we need to protect the bad inode
list from concurrent modification and/or access. Wrap it with a
mutex and clean up the nasty typedefs.

Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Gao Xiang <hsiangkao@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
repair/dir2.c
repair/dir2.h