Lines Matching refs:commit_start
808 static void write_journal(struct dm_integrity_c *ic, unsigned commit_start, unsigned commit_section… in write_journal() argument
818 if (commit_start + commit_sections <= ic->journal_sections) { in write_journal()
824 encrypt_journal(ic, true, commit_start, commit_sections, &crypt_comp_1); in write_journal()
828 rw_section_mac(ic, commit_start + i, true); in write_journal()
830 rw_journal(ic, REQ_OP_WRITE, REQ_FUA | REQ_SYNC, commit_start, in write_journal()
835 to_end = ic->journal_sections - commit_start; in write_journal()
840 encrypt_journal(ic, true, commit_start, to_end, &crypt_comp_1); in write_journal()
842 rw_journal(ic, REQ_OP_WRITE, REQ_FUA, commit_start, to_end, &io_comp); in write_journal()
853 rw_journal(ic, REQ_OP_WRITE, REQ_FUA, commit_start, to_end, &io_comp); in write_journal()
858 rw_section_mac(ic, commit_start + i, true); in write_journal()
859 rw_journal(ic, REQ_OP_WRITE, REQ_FUA, commit_start, to_end, &io_comp); in write_journal()
1838 unsigned commit_start, commit_sections; in integrity_commit() local
1853 commit_start = ic->uncommitted_section; in integrity_commit()
1860 i = commit_start; in integrity_commit()
1879 write_journal(ic, commit_start, commit_sections); in integrity_commit()