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/recovery.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/recovery.c')
-rw-r--r-- | fs/jbd2/recovery.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/jbd2/recovery.c b/fs/jbd2/recovery.c index 2486843adda0..52054a83e717 100644 --- a/fs/jbd2/recovery.c +++ b/fs/jbd2/recovery.c | |||
@@ -70,7 +70,7 @@ static int do_readahead(journal_t *journal, unsigned int start) | |||
70 | { | 70 | { |
71 | int err; | 71 | int err; |
72 | unsigned int max, nbufs, next; | 72 | unsigned int max, nbufs, next; |
73 | unsigned long blocknr; | 73 | sector_t blocknr; |
74 | struct buffer_head *bh; | 74 | struct buffer_head *bh; |
75 | 75 | ||
76 | struct buffer_head * bufs[MAXBUF]; | 76 | struct buffer_head * bufs[MAXBUF]; |
@@ -132,7 +132,7 @@ static int jread(struct buffer_head **bhp, journal_t *journal, | |||
132 | unsigned int offset) | 132 | unsigned int offset) |
133 | { | 133 | { |
134 | int err; | 134 | int err; |
135 | unsigned long blocknr; | 135 | sector_t blocknr; |
136 | struct buffer_head *bh; | 136 | struct buffer_head *bh; |
137 | 137 | ||
138 | *bhp = NULL; | 138 | *bhp = NULL; |
@@ -452,7 +452,7 @@ static int do_one_pass(journal_t *journal, | |||
452 | "block %ld in log\n", | 452 | "block %ld in log\n", |
453 | err, io_block); | 453 | err, io_block); |
454 | } else { | 454 | } else { |
455 | unsigned long blocknr; | 455 | sector_t blocknr; |
456 | 456 | ||
457 | J_ASSERT(obh != NULL); | 457 | J_ASSERT(obh != NULL); |
458 | blocknr = read_tag_block(tag_bytes, | 458 | blocknr = read_tag_block(tag_bytes, |
@@ -592,7 +592,7 @@ static int scan_revoke_records(journal_t *journal, struct buffer_head *bh, | |||
592 | record_len = 8; | 592 | record_len = 8; |
593 | 593 | ||
594 | while (offset + record_len <= max) { | 594 | while (offset + record_len <= max) { |
595 | unsigned long blocknr; | 595 | sector_t blocknr; |
596 | int err; | 596 | int err; |
597 | 597 | ||
598 | if (record_len == 4) | 598 | if (record_len == 4) |