Whamcloud - gitweb
LU-8465 e2fsck: merge context flags properly 83/37783/10
authorWang Shilong <wshilong@ddn.com>
Mon, 24 Feb 2020 05:08:58 +0000 (13:08 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Sat, 26 Sep 2020 04:47:28 +0000 (04:47 +0000)
e2fsck might restart after pass1, so we should keep
flags if possible, this patch try to fix f_illitable_flexbg failure

Change-Id: I11229f2ad6225f53fed3a646058526bf5c853985
Signed-off-by: Wang Shilong <wshilong@ddn.com>
Reviewed-on: https://review.whamcloud.com/37783
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Andreas Dilger <adilger@whamcloud.com>
e2fsck/pass1.c

index 80d8f60..b679c42 100644 (file)
@@ -2827,9 +2827,7 @@ static int e2fsck_pass1_thread_join_one(e2fsck_t global_ctx, e2fsck_t thread_ctx
        global_ctx->fs_fragmented_dir += fs_fragmented_dir;
        global_ctx->large_files += large_files;
 
-       /* Keep the global singal flags*/
-       global_ctx->flags |= (flags & E2F_FLAG_SIGNAL_MASK) |
-                            (global_ctx->flags & E2F_FLAG_SIGNAL_MASK);
+       global_ctx->flags |= flags;
 
        retval = e2fsck_pass1_merge_fs(global_fs, thread_fs);
        if (retval) {