diff options
Diffstat (limited to 'fs/jbd2/recovery.c')
-rw-r--r-- | fs/jbd2/recovery.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/jbd2/recovery.c b/fs/jbd2/recovery.c index c1a03354a22f..980f3d6b5f88 100644 --- a/fs/jbd2/recovery.c +++ b/fs/jbd2/recovery.c | |||
@@ -193,10 +193,10 @@ static int count_tags(journal_t *journal, struct buffer_head *bh) | |||
193 | 193 | ||
194 | nr++; | 194 | nr++; |
195 | tagp += tag_bytes; | 195 | tagp += tag_bytes; |
196 | if (!(tag->t_flags & cpu_to_be32(JBD2_FLAG_SAME_UUID))) | 196 | if (!(tag->t_flags & cpu_to_be16(JBD2_FLAG_SAME_UUID))) |
197 | tagp += 16; | 197 | tagp += 16; |
198 | 198 | ||
199 | if (tag->t_flags & cpu_to_be32(JBD2_FLAG_LAST_TAG)) | 199 | if (tag->t_flags & cpu_to_be16(JBD2_FLAG_LAST_TAG)) |
200 | break; | 200 | break; |
201 | } | 201 | } |
202 | 202 | ||
@@ -485,7 +485,7 @@ static int do_one_pass(journal_t *journal, | |||
485 | unsigned long io_block; | 485 | unsigned long io_block; |
486 | 486 | ||
487 | tag = (journal_block_tag_t *) tagp; | 487 | tag = (journal_block_tag_t *) tagp; |
488 | flags = be32_to_cpu(tag->t_flags); | 488 | flags = be16_to_cpu(tag->t_flags); |
489 | 489 | ||
490 | io_block = next_log_block++; | 490 | io_block = next_log_block++; |
491 | wrap(journal, next_log_block); | 491 | wrap(journal, next_log_block); |