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>
Fri, 28 Apr 2023 00:47:13 +0000 (10:47 +1000)
commit29f0e91840931f3fede70e825c78f4d8871b1393
treefe0f68b49ca0ffc97f6541036ab9dda3abe1fa2e
parentef8c45767e38fc98dad632786db3f2132264c74b
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