Whamcloud - gitweb
- missed patches from suse-2.4.21-2 series added
[fs/lustre-release.git] / lustre / kernel_patches / patches / ext3-start_this_handle-must-return-error.patch
1 Index: linux-2.6.0/fs/jbd/transaction.c
2 ===================================================================
3 --- linux-2.6.0.orig/fs/jbd/transaction.c       2004-01-05 16:18:59.000000000 +0300
4 +++ linux-2.6.0/fs/jbd/transaction.c    2004-01-05 16:19:48.000000000 +0300
5 @@ -85,7 +85,7 @@
6         int needed;
7         int nblocks = handle->h_buffer_credits;
8         transaction_t *new_transaction = NULL;
9 -       int ret;
10 +       int ret = 0;
11  
12         if (nblocks > journal->j_max_transaction_buffers) {
13                 printk(KERN_ERR "JBD: %s wants too many credits (%d > %d)\n",
14 @@ -231,7 +231,7 @@
15  out:
16         if (new_transaction)
17                 kfree(new_transaction);
18 -       return 0;
19 +       return ret;
20  }
21  
22  /* Allocate a new handle.  This should probably be in a slab... */