aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jbd2/journal.c
diff options
context:
space:
mode:
authorZach Brown <zach.brown@oracle.com>2006-10-11 04:21:08 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-10-11 14:14:16 -0400
commitb517bea1c74e4773482b3f41b3f493522a8c8e30 (patch)
tree1e98110151f1a35cde84ce1a2cb6f0cb871e9551 /fs/jbd2/journal.c
parentd0d856e8bd6e697cb44b2b4dd038f3bec576a70e (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/journal.c')
-rw-r--r--fs/jbd2/journal.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/fs/jbd2/journal.c b/fs/jbd2/journal.c
index 8d0f71e562fe..926ebcbf8a7a 100644
--- a/fs/jbd2/journal.c
+++ b/fs/jbd2/journal.c
@@ -1610,6 +1610,17 @@ int jbd2_journal_blocks_per_page(struct inode *inode)
1610} 1610}
1611 1611
1612/* 1612/*
1613 * helper functions to deal with 32 or 64bit block numbers.
1614 */
1615size_t journal_tag_bytes(journal_t *journal)
1616{
1617 if (JBD2_HAS_INCOMPAT_FEATURE(journal, JBD2_FEATURE_INCOMPAT_64BIT))
1618 return JBD_TAG_SIZE64;
1619 else
1620 return JBD_TAG_SIZE32;
1621}
1622
1623/*
1613 * Simple support for retrying memory allocations. Introduced to help to 1624 * Simple support for retrying memory allocations. Introduced to help to
1614 * debug different VM deadlock avoidance strategies. 1625 * debug different VM deadlock avoidance strategies.
1615 */ 1626 */