Browse Source

ext4_journal: fix wrong endianess of revoke header's count field.

pull/11/head
ngkaho1234 9 years ago
committed by gkostka
parent
commit
1f9d420fe0
  1. 6
      lwext4/ext4_journal.c

6
lwext4/ext4_journal.c

@ -1049,7 +1049,8 @@ again:
} }
if (tag_tbl_size < record_len) { if (tag_tbl_size < record_len) {
header->count = journal->block_size - tag_tbl_size; jbd_set32(header, count,
journal->block_size - tag_tbl_size);
jbd_block_set(journal->jbd_fs, &desc_block); jbd_block_set(journal->jbd_fs, &desc_block);
desc_iblock = 0; desc_iblock = 0;
header = NULL; header = NULL;
@ -1071,7 +1072,8 @@ again:
} }
if (rc == EOK && desc_iblock) { if (rc == EOK && desc_iblock) {
if (header != NULL) if (header != NULL)
header->count = journal->block_size - tag_tbl_size; jbd_set32(header, count,
journal->block_size - tag_tbl_size);
jbd_block_set(journal->jbd_fs, &desc_block); jbd_block_set(journal->jbd_fs, &desc_block);
} }

Loading…
Cancel
Save