diff options
| -rw-r--r-- | fs/jbd2/transaction.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/jbd2/transaction.c b/fs/jbd2/transaction.c index 3d8246a9faa4..e1652665bd93 100644 --- a/fs/jbd2/transaction.c +++ b/fs/jbd2/transaction.c | |||
| @@ -1149,6 +1149,7 @@ int jbd2_journal_get_create_access(handle_t *handle, struct buffer_head *bh) | |||
| 1149 | JBUFFER_TRACE(jh, "file as BJ_Reserved"); | 1149 | JBUFFER_TRACE(jh, "file as BJ_Reserved"); |
| 1150 | spin_lock(&journal->j_list_lock); | 1150 | spin_lock(&journal->j_list_lock); |
| 1151 | __jbd2_journal_file_buffer(jh, transaction, BJ_Reserved); | 1151 | __jbd2_journal_file_buffer(jh, transaction, BJ_Reserved); |
| 1152 | spin_unlock(&journal->j_list_lock); | ||
| 1152 | } else if (jh->b_transaction == journal->j_committing_transaction) { | 1153 | } else if (jh->b_transaction == journal->j_committing_transaction) { |
| 1153 | /* first access by this transaction */ | 1154 | /* first access by this transaction */ |
| 1154 | jh->b_modified = 0; | 1155 | jh->b_modified = 0; |
| @@ -1156,8 +1157,8 @@ int jbd2_journal_get_create_access(handle_t *handle, struct buffer_head *bh) | |||
| 1156 | JBUFFER_TRACE(jh, "set next transaction"); | 1157 | JBUFFER_TRACE(jh, "set next transaction"); |
| 1157 | spin_lock(&journal->j_list_lock); | 1158 | spin_lock(&journal->j_list_lock); |
| 1158 | jh->b_next_transaction = transaction; | 1159 | jh->b_next_transaction = transaction; |
| 1160 | spin_unlock(&journal->j_list_lock); | ||
| 1159 | } | 1161 | } |
| 1160 | spin_unlock(&journal->j_list_lock); | ||
| 1161 | jbd_unlock_bh_state(bh); | 1162 | jbd_unlock_bh_state(bh); |
| 1162 | 1163 | ||
| 1163 | /* | 1164 | /* |
