diff options
Diffstat (limited to 'fs/jbd2/commit.c')
-rw-r--r-- | fs/jbd2/commit.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/fs/jbd2/commit.c b/fs/jbd2/commit.c index c0f59d1b13dc..6986f334c643 100644 --- a/fs/jbd2/commit.c +++ b/fs/jbd2/commit.c | |||
@@ -278,7 +278,7 @@ static inline void write_tag_block(int tag_bytes, journal_block_tag_t *tag, | |||
278 | unsigned long long block) | 278 | unsigned long long block) |
279 | { | 279 | { |
280 | tag->t_blocknr = cpu_to_be32(block & (u32)~0); | 280 | tag->t_blocknr = cpu_to_be32(block & (u32)~0); |
281 | if (tag_bytes > JBD_TAG_SIZE32) | 281 | if (tag_bytes > JBD2_TAG_SIZE32) |
282 | tag->t_blocknr_high = cpu_to_be32((block >> 31) >> 1); | 282 | tag->t_blocknr_high = cpu_to_be32((block >> 31) >> 1); |
283 | } | 283 | } |
284 | 284 | ||
@@ -384,7 +384,7 @@ void jbd2_journal_commit_transaction(journal_t *journal) | |||
384 | struct buffer_head *bh = jh2bh(jh); | 384 | struct buffer_head *bh = jh2bh(jh); |
385 | 385 | ||
386 | jbd_lock_bh_state(bh); | 386 | jbd_lock_bh_state(bh); |
387 | jbd2_slab_free(jh->b_committed_data, bh->b_size); | 387 | jbd2_free(jh->b_committed_data, bh->b_size); |
388 | jh->b_committed_data = NULL; | 388 | jh->b_committed_data = NULL; |
389 | jbd_unlock_bh_state(bh); | 389 | jbd_unlock_bh_state(bh); |
390 | } | 390 | } |
@@ -475,7 +475,7 @@ void jbd2_journal_commit_transaction(journal_t *journal) | |||
475 | spin_unlock(&journal->j_list_lock); | 475 | spin_unlock(&journal->j_list_lock); |
476 | 476 | ||
477 | if (err) | 477 | if (err) |
478 | __jbd2_journal_abort_hard(journal); | 478 | jbd2_journal_abort(journal, err); |
479 | 479 | ||
480 | jbd2_journal_write_revoke_records(journal, commit_transaction); | 480 | jbd2_journal_write_revoke_records(journal, commit_transaction); |
481 | 481 | ||
@@ -533,7 +533,7 @@ void jbd2_journal_commit_transaction(journal_t *journal) | |||
533 | 533 | ||
534 | descriptor = jbd2_journal_get_descriptor_buffer(journal); | 534 | descriptor = jbd2_journal_get_descriptor_buffer(journal); |
535 | if (!descriptor) { | 535 | if (!descriptor) { |
536 | __jbd2_journal_abort_hard(journal); | 536 | jbd2_journal_abort(journal, -EIO); |
537 | continue; | 537 | continue; |
538 | } | 538 | } |
539 | 539 | ||
@@ -566,7 +566,7 @@ void jbd2_journal_commit_transaction(journal_t *journal) | |||
566 | and repeat this loop: we'll fall into the | 566 | and repeat this loop: we'll fall into the |
567 | refile-on-abort condition above. */ | 567 | refile-on-abort condition above. */ |
568 | if (err) { | 568 | if (err) { |
569 | __jbd2_journal_abort_hard(journal); | 569 | jbd2_journal_abort(journal, err); |
570 | continue; | 570 | continue; |
571 | } | 571 | } |
572 | 572 | ||
@@ -757,7 +757,7 @@ wait_for_iobuf: | |||
757 | err = -EIO; | 757 | err = -EIO; |
758 | 758 | ||
759 | if (err) | 759 | if (err) |
760 | __jbd2_journal_abort_hard(journal); | 760 | jbd2_journal_abort(journal, err); |
761 | 761 | ||
762 | /* End of a transaction! Finally, we can do checkpoint | 762 | /* End of a transaction! Finally, we can do checkpoint |
763 | processing: any buffers committed as a result of this | 763 | processing: any buffers committed as a result of this |
@@ -801,14 +801,14 @@ restart_loop: | |||
801 | * Otherwise, we can just throw away the frozen data now. | 801 | * Otherwise, we can just throw away the frozen data now. |
802 | */ | 802 | */ |
803 | if (jh->b_committed_data) { | 803 | if (jh->b_committed_data) { |
804 | jbd2_slab_free(jh->b_committed_data, bh->b_size); | 804 | jbd2_free(jh->b_committed_data, bh->b_size); |
805 | jh->b_committed_data = NULL; | 805 | jh->b_committed_data = NULL; |
806 | if (jh->b_frozen_data) { | 806 | if (jh->b_frozen_data) { |
807 | jh->b_committed_data = jh->b_frozen_data; | 807 | jh->b_committed_data = jh->b_frozen_data; |
808 | jh->b_frozen_data = NULL; | 808 | jh->b_frozen_data = NULL; |
809 | } | 809 | } |
810 | } else if (jh->b_frozen_data) { | 810 | } else if (jh->b_frozen_data) { |
811 | jbd2_slab_free(jh->b_frozen_data, bh->b_size); | 811 | jbd2_free(jh->b_frozen_data, bh->b_size); |
812 | jh->b_frozen_data = NULL; | 812 | jh->b_frozen_data = NULL; |
813 | } | 813 | } |
814 | 814 | ||