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)
committerLi Dongyang <dongyangli@ddn.com>
Thu, 8 Apr 2021 00:58:03 +0000 (10:58 +1000)
commit26276f5b8b0be16799830fbf93785fc407df870c
treeec341ccd8a49b3be5a817db1840a2b5efb8efd9d
parentf94c0b737a254bd64a0e8366a8daa938a2edee45
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