[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1592494074-28991-47-git-send-email-wangshilong1991@gmail.com>
Date: Fri, 19 Jun 2020 00:27:49 +0900
From: Wang Shilong <wangshilong1991@...il.com>
To: linux-ext4@...r.kernel.org
Cc: lixi@....com, adilger@...ger.ca, wangshilong1991@...il.com,
sihara@....com, Wang Shilong <wshilong@....com>
Subject: [RFC PATCH v2 46/51] LU-8465 e2fsck: merge extent depth count after threads finish
From: Wang Shilong <wshilong@....com>
tests covered by f_extent_htree.
Signed-off-by: Wang Shilong <wshilong@....com>
---
e2fsck/pass1.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/e2fsck/pass1.c b/e2fsck/pass1.c
index 3d6af9fb..d56b7128 100644
--- a/e2fsck/pass1.c
+++ b/e2fsck/pass1.c
@@ -2991,6 +2991,7 @@ static errcode_t e2fsck_pass1_merge_context(e2fsck_t global_ctx,
e2fsck_t thread_ctx)
{
errcode_t retval;
+ int i;
global_ctx->fs_directory_count += thread_ctx->fs_directory_count;
global_ctx->fs_regular_count += thread_ctx->fs_regular_count;
@@ -3018,6 +3019,11 @@ static errcode_t e2fsck_pass1_merge_context(e2fsck_t global_ctx,
*/
global_ctx->lost_and_found = 0;
+ /* merge extent depth count */
+ for (i = 0; i < MAX_EXTENT_DEPTH_COUNT; i++)
+ global_ctx->extent_depth_count[i] +=
+ thread_ctx->extent_depth_count[i];
+
e2fsck_pass1_merge_dir_info(global_ctx, thread_ctx);
e2fsck_pass1_merge_dx_dir(global_ctx, thread_ctx);
retval = e2fsck_pass1_merge_fs(global_ctx->fs, thread_ctx->fs);
--
2.25.4
Powered by blists - more mailing lists