Whamcloud - gitweb
LU-14769 e2fsck: init inode_badness proper for thread context 12/44012/3
authorWang Shilong <wshilong@ddn.com>
Thu, 27 May 2021 05:04:08 +0000 (13:04 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 18 Jun 2021 00:51:20 +0000 (00:51 +0000)
Some bad inode might be added before pass1, so global_ctx's
@inode_badness might be not NULL, we need init thread_ctx's
inode badness as NULL.

Change-Id: I31a526fd0cfc0c9f8c13598deba4ae882080412f
Signed-off-by: Wang Shilong <wshilong@ddn.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/44012
Reviewed-by: Wang Shilong <wshilong@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
e2fsck/pass1.c

index 93f8f23..5e97298 100644 (file)
@@ -2990,6 +2990,7 @@ static errcode_t e2fsck_pass1_thread_prepare(e2fsck_t global_ctx, e2fsck_t *thre
        thread_context->block_dup_map = NULL;
        thread_context->casefolded_dirs = NULL;
        thread_context->expand_eisize_map = NULL;
+       thread_context->inode_badness = NULL;
 
        retval = e2fsck_allocate_block_bitmap(global_ctx->fs,
                                _("in-use block map"), EXT2FS_BMAP64_RBTREE,