Lines Matching defs:commit_start
1114 static void write_journal(struct dm_integrity_c *ic, unsigned int commit_start, unsigned int commit_sections)
1124 if (commit_start + commit_sections <= ic->journal_sections) {
1130 encrypt_journal(ic, true, commit_start, commit_sections, &crypt_comp_1);
1134 rw_section_mac(ic, commit_start + i, true);
1136 rw_journal(ic, REQ_OP_WRITE | REQ_FUA | REQ_SYNC, commit_start,
1142 to_end = ic->journal_sections - commit_start;
1147 encrypt_journal(ic, true, commit_start, to_end, &crypt_comp_1);
1150 commit_start, to_end, &io_comp);
1161 rw_journal(ic, REQ_OP_WRITE | REQ_FUA, commit_start, to_end, &io_comp);
1166 rw_section_mac(ic, commit_start + i, true);
1167 rw_journal(ic, REQ_OP_WRITE | REQ_FUA, commit_start, to_end, &io_comp);
2900 unsigned int commit_start, commit_sections;
2918 commit_start = ic->uncommitted_section;
2927 i = commit_start;
2948 write_journal(ic, commit_start, commit_sections);