Lines Matching refs:j
95 static void jbd2_commit_block_csum_set(journal_t *j, struct buffer_head *bh) in jbd2_commit_block_csum_set() argument
100 if (!jbd2_journal_has_csum_v2or3(j)) in jbd2_commit_block_csum_set()
107 csum = jbd2_chksum(j, j->j_csum_seed, bh->b_data, j->j_blocksize); in jbd2_commit_block_csum_set()
314 static void write_tag_block(journal_t *j, journal_block_tag_t *tag, in write_tag_block() argument
318 if (jbd2_has_feature_64bit(j)) in write_tag_block()
322 static void jbd2_descr_block_csum_set(journal_t *j, in jbd2_descr_block_csum_set() argument
328 if (!jbd2_journal_has_csum_v2or3(j)) in jbd2_descr_block_csum_set()
331 tail = (struct jbd2_journal_block_tail *)(bh->b_data + j->j_blocksize - in jbd2_descr_block_csum_set()
334 csum = jbd2_chksum(j, j->j_csum_seed, bh->b_data, j->j_blocksize); in jbd2_descr_block_csum_set()
338 static void jbd2_block_tag_csum_set(journal_t *j, journal_block_tag_t *tag, in jbd2_block_tag_csum_set() argument
347 if (!jbd2_journal_has_csum_v2or3(j)) in jbd2_block_tag_csum_set()
352 csum32 = jbd2_chksum(j, j->j_csum_seed, (__u8 *)&seq, sizeof(seq)); in jbd2_block_tag_csum_set()
353 csum32 = jbd2_chksum(j, csum32, addr + offset_in_page(bh->b_data), in jbd2_block_tag_csum_set()
357 if (jbd2_has_feature_csum3(j)) in jbd2_block_tag_csum_set()