diff options
author | Mingming Cao <cmm@us.ibm.com> | 2006-10-11 04:21:09 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-11 14:14:17 -0400 |
commit | 299717696d48531d70aeb4614c3939e4a28456c1 (patch) | |
tree | d63c05b0192e480917c48126b2ac7c0f74d08018 /fs/jbd2/journal.c | |
parent | b517bea1c74e4773482b3f41b3f493522a8c8e30 (diff) |
[PATCH] jbd2: sector_t conversion
JBD layer in-kernel block varibles type fixes to support >32 bit block number
and convert to sector_t type.
Signed-off-by: Mingming Cao <cmm@us.ibm.com>
Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/jbd2/journal.c')
-rw-r--r-- | fs/jbd2/journal.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/fs/jbd2/journal.c b/fs/jbd2/journal.c index 926ebcbf8a7a..259e8365ea15 100644 --- a/fs/jbd2/journal.c +++ b/fs/jbd2/journal.c | |||
@@ -271,7 +271,7 @@ static void journal_kill_thread(journal_t *journal) | |||
271 | int jbd2_journal_write_metadata_buffer(transaction_t *transaction, | 271 | int 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 | unsigned long blocknr) | 274 | sector_t 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 | ||
558 | int jbd2_journal_next_log_block(journal_t *journal, unsigned long *retp) | 558 | int jbd2_journal_next_log_block(journal_t *journal, sector_t *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, unsigned long *retp) | |||
579 | * ready. | 579 | * ready. |
580 | */ | 580 | */ |
581 | int jbd2_journal_bmap(journal_t *journal, unsigned long blocknr, | 581 | int jbd2_journal_bmap(journal_t *journal, unsigned long blocknr, |
582 | unsigned long *retp) | 582 | sector_t *retp) |
583 | { | 583 | { |
584 | int err = 0; | 584 | int err = 0; |
585 | unsigned long ret; | 585 | sector_t 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, | |||
618 | struct journal_head *jbd2_journal_get_descriptor_buffer(journal_t *journal) | 618 | struct journal_head *jbd2_journal_get_descriptor_buffer(journal_t *journal) |
619 | { | 619 | { |
620 | struct buffer_head *bh; | 620 | struct buffer_head *bh; |
621 | unsigned long blocknr; | 621 | sector_t 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 | */ |
707 | journal_t * jbd2_journal_init_dev(struct block_device *bdev, | 707 | journal_t * jbd2_journal_init_dev(struct block_device *bdev, |
708 | struct block_device *fs_dev, | 708 | struct block_device *fs_dev, |
709 | int start, int len, int blocksize) | 709 | sector_t 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 | unsigned long blocknr; | 756 | sector_t 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) | |||
819 | static int journal_reset(journal_t *journal) | 819 | static 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 | unsigned long first, last; | 822 | sector_t 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 | **/ |
854 | int jbd2_journal_create(journal_t *journal) | 854 | int jbd2_journal_create(journal_t *journal) |
855 | { | 855 | { |
856 | unsigned long blocknr; | 856 | sector_t 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; |