summaryrefslogtreecommitdiff
path: root/src/ext4_journal.c
diff options
context:
space:
mode:
authorcah <cah@ableton.com>2020-08-05 23:57:59 +0200
committercah <cah@ableton.com>2020-08-05 23:57:59 +0200
commit2975f12879cf76b3b5e4d04392ae3d5f4cd02419 (patch)
tree29f0c65f210077d7cb037e2894475947d20ac6cb /src/ext4_journal.c
parent45f52858ee2d2b19ce893cd6a55473eba57ec92c (diff)
Debug logz
Diffstat (limited to 'src/ext4_journal.c')
-rw-r--r--src/ext4_journal.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/ext4_journal.c b/src/ext4_journal.c
index 9d998a1..786458e 100644
--- a/src/ext4_journal.c
+++ b/src/ext4_journal.c
@@ -944,7 +944,7 @@ static void jbd_replay_block_tags(struct jbd_fs *jbd_fs,
}
jbd_block_set(jbd_fs, &journal_block);
-
+
return;
}
@@ -1338,6 +1338,7 @@ static void jbd_journal_flush_trans(struct jbd_trans *trans)
memcpy(tmp_data, jbd_block.data,
journal->block_size);
ext4_block_set(fs->bdev, &jbd_block);
+ printf("journalling stuff --> ext4_blocks_set_direct\n");
r = ext4_blocks_set_direct(fs->bdev, tmp_data,
jbd_buf->block_rec->lba, 1);
jbd_trans_end_write(fs->bdev->bc, buf, r, jbd_buf);
@@ -1460,7 +1461,7 @@ static uint32_t jbd_journal_alloc_block(struct jbd_journal *journal,
start_block = journal->last++;
trans->alloc_blocks++;
wrap(&journal->jbd_fs->sb, journal->last);
-
+
/* If there is no space left, flush just one journalled
* transaction.*/
if (journal->last == journal->start) {
@@ -1830,7 +1831,7 @@ static int jbd_journal_prepare(struct jbd_journal *journal,
if (ext4_bcache_test_flag(jbd_buf->block.buf,
BC_DIRTY))
break;
-
+
TAILQ_REMOVE(&jbd_buf->block_rec->dirty_buf_queue,
jbd_buf,
dirty_buf_node);
@@ -2027,7 +2028,7 @@ again:
jbd_set32(bhdr, magic, JBD_MAGIC_NUMBER);
jbd_set32(bhdr, blocktype, JBD_REVOKE_BLOCK);
jbd_set32(bhdr, sequence, trans->trans_id);
-
+
header = (struct jbd_revoke_header *)bhdr;
blocks_entry = (char *)(header + 1);
tag_tbl_size = journal->block_size -