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, 28 Mar 2022 22:13:10 +0000 (16:13 -0600)
commitee9db4667a3bd32ccd19e144783e2019171ee440
treef40126bb9d74c14e3c47c1a669cc794a138e1f0d
parent25fbae873adee0ed3b9340a308e45ad87dc9bb18
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