Whamcloud - gitweb
log_do_checkpoint(): fix return value.
authornikita <nikita>
Wed, 29 Nov 2006 19:09:54 +0000 (19:09 +0000)
committernikita <nikita>
Wed, 29 Nov 2006 19:09:54 +0000 (19:09 +0000)
lustre/kernel_patches/patches/jbd-checkpoint-on-commit.patch

index 367ba3f..b459eb2 100644 (file)
@@ -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;