Lines Matching refs:commit_start
1103 static void write_journal(struct dm_integrity_c *ic, unsigned commit_start, unsigned commit_section… in write_journal() argument
1113 if (commit_start + commit_sections <= ic->journal_sections) { in write_journal()
1119 encrypt_journal(ic, true, commit_start, commit_sections, &crypt_comp_1); in write_journal()
1123 rw_section_mac(ic, commit_start + i, true); in write_journal()
1125 rw_journal(ic, REQ_OP_WRITE, REQ_FUA | REQ_SYNC, commit_start, in write_journal()
1130 to_end = ic->journal_sections - commit_start; in write_journal()
1135 encrypt_journal(ic, true, commit_start, to_end, &crypt_comp_1); in write_journal()
1137 rw_journal(ic, REQ_OP_WRITE, REQ_FUA, commit_start, to_end, &io_comp); in write_journal()
1148 rw_journal(ic, REQ_OP_WRITE, REQ_FUA, commit_start, to_end, &io_comp); in write_journal()
1153 rw_section_mac(ic, commit_start + i, true); in write_journal()
1154 rw_journal(ic, REQ_OP_WRITE, REQ_FUA, commit_start, to_end, &io_comp); in write_journal()
2342 unsigned commit_start, commit_sections; in integrity_commit() local
2357 commit_start = ic->uncommitted_section; in integrity_commit()
2364 i = commit_start; in integrity_commit()
2383 write_journal(ic, commit_start, commit_sections); in integrity_commit()