aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jbd2/journal.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/jbd2/journal.c')
-rw-r--r--fs/jbd2/journal.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/fs/jbd2/journal.c b/fs/jbd2/journal.c
index 259e8365ea15..10db92ced014 100644
--- a/fs/jbd2/journal.c
+++ b/fs/jbd2/journal.c
@@ -271,7 +271,7 @@ static void journal_kill_thread(journal_t *journal)
271int jbd2_journal_write_metadata_buffer(transaction_t *transaction, 271int jbd2_journal_write_metadata_buffer(transaction_t *transaction,
272 struct journal_head *jh_in, 272 struct journal_head *jh_in,
273 struct journal_head **jh_out, 273 struct journal_head **jh_out,
274 sector_t blocknr) 274 unsigned long long blocknr)
275{ 275{
276 int need_copy_out = 0; 276 int need_copy_out = 0;
277 int done_copy_out = 0; 277 int done_copy_out = 0;
@@ -555,7 +555,7 @@ int jbd2_log_wait_commit(journal_t *journal, tid_t tid)
555 * Log buffer allocation routines: 555 * Log buffer allocation routines:
556 */ 556 */
557 557
558int jbd2_journal_next_log_block(journal_t *journal, sector_t *retp) 558int jbd2_journal_next_log_block(journal_t *journal, unsigned long long *retp)
559{ 559{
560 unsigned long blocknr; 560 unsigned long blocknr;
561 561
@@ -579,10 +579,10 @@ int jbd2_journal_next_log_block(journal_t *journal, sector_t *retp)
579 * ready. 579 * ready.
580 */ 580 */
581int jbd2_journal_bmap(journal_t *journal, unsigned long blocknr, 581int jbd2_journal_bmap(journal_t *journal, unsigned long blocknr,
582 sector_t *retp) 582 unsigned long long *retp)
583{ 583{
584 int err = 0; 584 int err = 0;
585 sector_t ret; 585 unsigned long long ret;
586 586
587 if (journal->j_inode) { 587 if (journal->j_inode) {
588 ret = bmap(journal->j_inode, blocknr); 588 ret = bmap(journal->j_inode, blocknr);
@@ -618,7 +618,7 @@ int jbd2_journal_bmap(journal_t *journal, unsigned long blocknr,
618struct journal_head *jbd2_journal_get_descriptor_buffer(journal_t *journal) 618struct journal_head *jbd2_journal_get_descriptor_buffer(journal_t *journal)
619{ 619{
620 struct buffer_head *bh; 620 struct buffer_head *bh;
621 sector_t blocknr; 621 unsigned long long blocknr;
622 int err; 622 int err;
623 623
624 err = jbd2_journal_next_log_block(journal, &blocknr); 624 err = jbd2_journal_next_log_block(journal, &blocknr);
@@ -706,7 +706,7 @@ fail:
706 */ 706 */
707journal_t * jbd2_journal_init_dev(struct block_device *bdev, 707journal_t * jbd2_journal_init_dev(struct block_device *bdev,
708 struct block_device *fs_dev, 708 struct block_device *fs_dev,
709 sector_t start, int len, int blocksize) 709 unsigned long long start, int len, int blocksize)
710{ 710{
711 journal_t *journal = journal_init_common(); 711 journal_t *journal = journal_init_common();
712 struct buffer_head *bh; 712 struct buffer_head *bh;
@@ -753,7 +753,7 @@ journal_t * jbd2_journal_init_inode (struct inode *inode)
753 journal_t *journal = journal_init_common(); 753 journal_t *journal = journal_init_common();
754 int err; 754 int err;
755 int n; 755 int n;
756 sector_t blocknr; 756 unsigned long long blocknr;
757 757
758 if (!journal) 758 if (!journal)
759 return NULL; 759 return NULL;
@@ -819,7 +819,7 @@ static void journal_fail_superblock (journal_t *journal)
819static int journal_reset(journal_t *journal) 819static int journal_reset(journal_t *journal)
820{ 820{
821 journal_superblock_t *sb = journal->j_superblock; 821 journal_superblock_t *sb = journal->j_superblock;
822 sector_t first, last; 822 unsigned long long first, last;
823 823
824 first = be32_to_cpu(sb->s_first); 824 first = be32_to_cpu(sb->s_first);
825 last = be32_to_cpu(sb->s_maxlen); 825 last = be32_to_cpu(sb->s_maxlen);
@@ -853,7 +853,7 @@ static int journal_reset(journal_t *journal)
853 **/ 853 **/
854int jbd2_journal_create(journal_t *journal) 854int jbd2_journal_create(journal_t *journal)
855{ 855{
856 sector_t blocknr; 856 unsigned long long blocknr;
857 struct buffer_head *bh; 857 struct buffer_head *bh;
858 journal_superblock_t *sb; 858 journal_superblock_t *sb;
859 int i, err; 859 int i, err;