Whamcloud - gitweb
LU-8465 e2fsck: avoid too much memory allocation for pfsck 49/39849/9
authorWang Shilong <wshilong@ddn.com>
Wed, 27 May 2020 07:14:23 +0000 (07:14 +0000)
committerAndreas Dilger <adilger@whamcloud.com>
Sat, 26 Sep 2020 06:38:54 +0000 (06:38 +0000)
commita6a2410f4fa0b02f3fda8876d4b6037ddc6ef65c
tree6063ddcd392c895e61bffd09404b589799b1265b
parent59b7eac3b747afa1027cd9a905ed08d5fd8c3d54
LU-8465 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.

Signed-off-by: Wang Shilong <wshilong@ddn.com>
Change-Id: I99b7415231e0eb3670acec82a8a7b85b20dd36d5
Reviewed-on: https://review.whamcloud.com/39849
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lib/ext2fs/dblist.c
lib/ext2fs/icount.c