Whamcloud - gitweb
e2fsck: merge context flags properly
authorWang Shilong <wshilong@ddn.com>
Mon, 24 Feb 2020 05:08:58 +0000 (13:08 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Mon, 19 Sep 2022 23:15:27 +0000 (17:15 -0600)
e2fsck might restart after pass1, so we should keep
flags if possible, this patch try to fix f_illitable_flexbg failure

E2fsprogs-commit: c36fa1b28bd4171f53ab4f89a90f6b3b8bf80fd2

Change-Id: I6dda1520a2ff6255d244461af75d7609f47ba92b
Signed-off-by: Wang Shilong <wshilong@ddn.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Signed-off-by: Saranya Muruganandam <saranyamohan@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/pass1.c

index f0cc776..9bff690 100644 (file)
@@ -2610,9 +2610,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) {