Whamcloud - gitweb
e2fsck: serialize fix operations
authorWang Shilong <wshilong@ddn.com>
Fri, 6 Mar 2020 08:46:47 +0000 (16:46 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Mon, 28 Mar 2022 22:13:09 +0000 (16:13 -0600)
commit4de7e16e18ed92100dba72dc2f1f1ca2472a0804
tree5cb808f05a9111425fba43912564d3321d7319e1
parent12b25a3e27ceaa73cc9080af5a054e8452e83714
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.

E2fsprogs-commit: 5485120b668c952b6e83f24a1e1a74eaa7bf362e

Change-Id: Iedb64545240cc9325dc0c4ce737a970b27f4f3f6
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