diff options
author | Zach Brown <zach.brown@oracle.com> | 2006-10-11 04:21:08 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-11 14:14:16 -0400 |
commit | b517bea1c74e4773482b3f41b3f493522a8c8e30 (patch) | |
tree | 1e98110151f1a35cde84ce1a2cb6f0cb871e9551 /fs/jbd2/revoke.c | |
parent | d0d856e8bd6e697cb44b2b4dd038f3bec576a70e (diff) |
[PATCH] 64-bit jbd2 core
Here is the patch to JBD to handle 64 bit block numbers, originally from Zach
Brown. This patch is useful only after adding support for 64-bit block
numbers in the filesystem.
Signed-off-by: Badari Pulavarty <pbadari@us.ibm.com>
Signed-off-by: Zach Brown <zach.brown@oracle.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/revoke.c')
-rw-r--r-- | fs/jbd2/revoke.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/fs/jbd2/revoke.c b/fs/jbd2/revoke.c index 5820a0c5ad26..8aac875bd301 100644 --- a/fs/jbd2/revoke.c +++ b/fs/jbd2/revoke.c | |||
@@ -584,9 +584,17 @@ static void write_one_revoke_record(journal_t *journal, | |||
584 | *descriptorp = descriptor; | 584 | *descriptorp = descriptor; |
585 | } | 585 | } |
586 | 586 | ||
587 | * ((__be32 *)(&jh2bh(descriptor)->b_data[offset])) = | 587 | if (JBD2_HAS_INCOMPAT_FEATURE(journal, JBD2_FEATURE_INCOMPAT_64BIT)) { |
588 | cpu_to_be32(record->blocknr); | 588 | * ((__be64 *)(&jh2bh(descriptor)->b_data[offset])) = |
589 | offset += 4; | 589 | cpu_to_be64(record->blocknr); |
590 | offset += 8; | ||
591 | |||
592 | } else { | ||
593 | * ((__be32 *)(&jh2bh(descriptor)->b_data[offset])) = | ||
594 | cpu_to_be32(record->blocknr); | ||
595 | offset += 4; | ||
596 | } | ||
597 | |||
590 | *offsetp = offset; | 598 | *offsetp = offset; |
591 | } | 599 | } |
592 | 600 | ||