From: nikita Date: Wed, 29 Nov 2006 19:09:54 +0000 (+0000) Subject: log_do_checkpoint(): fix return value. X-Git-Tag: v1_8_0_110~486^2~56 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=54a3a9b135b773930f5ce1c3603bab31592cde7a;p=fs%2Flustre-release.git log_do_checkpoint(): fix return value. --- diff --git a/lustre/kernel_patches/patches/jbd-checkpoint-on-commit.patch b/lustre/kernel_patches/patches/jbd-checkpoint-on-commit.patch index 367ba3f..b459eb2 100644 --- a/lustre/kernel_patches/patches/jbd-checkpoint-on-commit.patch +++ b/lustre/kernel_patches/patches/jbd-checkpoint-on-commit.patch @@ -54,7 +54,7 @@ Index: linux/fs/jbd/checkpoint.c - if (result < 0) - return result; + result2 = cleanup_journal_tail(journal); -+ if (result == 0) ++ if (result == 0 && result2 < 0) + result = result2; - return 0;