Whamcloud - gitweb
e2fsck: avoid too much memory allocation for pfsck
authorWang Shilong <wshilong@ddn.com>
Wed, 27 May 2020 07:14:23 +0000 (07:14 +0000)
committerAndreas Dilger <adilger@whamcloud.com>
Mon, 19 Sep 2022 23:16:09 +0000 (17:16 -0600)
commit3262a3ab0706d4dd6d062819b3be61fbd53c412a
treee6462f1ca3ad2aa2802ae766f0967fee2f6df493
parent9817548ac0d9ee4a8da32173a40a5cf90f66711d
e2fsck: avoid too much memory allocation for pfsck

e2fsck init memory according to filesystem inodes/dir numbers
recorded in the superblock, this should be aware of filesystem
number of threads, otherwise, oom happen.

E2fsprogs-commit: ed2cec54da604efe1af2734182985d1730674138

Change-Id: Ia66cd782a330f3f0215c7119c25ef701edc8b143
Signed-off-by: Wang Shilong <wshilong@ddn.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/dblist.c
lib/ext2fs/icount.c