diff options
Diffstat (limited to 'fs/jbd2/journal.c')
-rw-r--r-- | fs/jbd2/journal.c | 11 |
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 | */ | ||
1615 | size_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 | */ |