diff options
Diffstat (limited to 'fs/reiserfs/journal.c')
| -rw-r--r-- | fs/reiserfs/journal.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/reiserfs/journal.c b/fs/reiserfs/journal.c index 3f17ef844fb6..4491fcf2a0e6 100644 --- a/fs/reiserfs/journal.c +++ b/fs/reiserfs/journal.c | |||
| @@ -3925,10 +3925,13 @@ static int do_journal_end(struct reiserfs_transaction_handle *th, | |||
| 3925 | flush = 1; | 3925 | flush = 1; |
| 3926 | } | 3926 | } |
| 3927 | #ifdef REISERFS_PREALLOCATE | 3927 | #ifdef REISERFS_PREALLOCATE |
| 3928 | /* quota ops might need to nest, setup the journal_info pointer for them */ | 3928 | /* quota ops might need to nest, setup the journal_info pointer for them |
| 3929 | * and raise the refcount so that it is > 0. */ | ||
| 3929 | current->journal_info = th; | 3930 | current->journal_info = th; |
| 3931 | th->t_refcount++; | ||
| 3930 | reiserfs_discard_all_prealloc(th); /* it should not involve new blocks into | 3932 | reiserfs_discard_all_prealloc(th); /* it should not involve new blocks into |
| 3931 | * the transaction */ | 3933 | * the transaction */ |
| 3934 | th->t_refcount--; | ||
| 3932 | current->journal_info = th->t_handle_save; | 3935 | current->journal_info = th->t_handle_save; |
| 3933 | #endif | 3936 | #endif |
| 3934 | 3937 | ||
