[RFC][Update][Patch 10/16]Cleanup journal_tag_bytes()

Mingming Cao
2006-06-30T00:18:54Z

Cleanup journal_tag_bytes() to use the new JBD_TAG_SIZE* macros.

Signed-off-by: Stephen Tweedie <sct@redhat.com>
Acked-by: Badari Pulavarty <pbadari@us.ibm.com>

---

linux-2.6.17-ming/fs/jbd/journal.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff -puN fs/jbd/journal.c~jbd-cleanup-journal_tag_bytes fs/jbd/journal.c
--- linux-2.6.17/fs/jbd/journal.c~jbd-cleanup-journal_tag_bytes 2006-06-28 16:47:05.112984715 -0700
+++ linux-2.6.17-ming/fs/jbd/journal.c 2006-06-28 16:47:05.117984141 -0700
@@ -1608,9 +1608,9 @@ int journal_blocks_per_page(struct inode
size_t journal_tag_bytes(journal_t *journal)
{
if (JFS_HAS_INCOMPAT_FEATURE(journal, JFS_FEATURE_INCOMPAT_64BIT))
- return sizeof(journal_block_tag_t);
+ return JBD_TAG_SIZE64;
else
- return offsetof(journal_block_tag_t, t_blocknr_high);
+ return JBD_TAG_SIZE32;
}

/*

_