]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
e2fsck: serialize fix operations
authorWang Shilong <wshilong@ddn.com>
Fri, 6 Mar 2020 08:46:47 +0000 (16:46 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 25 Jan 2021 20:17:52 +0000 (15:17 -0500)
commit5485120b668c952b6e83f24a1e1a74eaa7bf362e
tree19b1aad7608d34c4dca98d38545c235f195ef575
parenta0af18577fbb960eb20695afbb4af4e23b864909
e2fsck: serialize fix operations

Allow different threads to fix at the same time could
be dangerous and error-prone now, and most of time
parallel scanning and checking is important.

So this patch adds a mutex to serialize
fix operations during pass1.

And the good benefit of this, we don't need block
allocations and free, superblock updates protection
any more, since only fix operations during pass1
could touch them.

Signed-off-by: Wang Shilong <wshilong@ddn.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Signed-off-by: Saranya Muruganandam <saranyamohan@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/e2fsck.h
e2fsck/pass1.c
e2fsck/util.c