Lines Matching refs:commit_sections
1096 …d write_journal(struct dm_integrity_c *ic, unsigned int commit_start, unsigned int commit_sections) in write_journal() argument
1106 if (commit_start + commit_sections <= ic->journal_sections) { in write_journal()
1112 encrypt_journal(ic, true, commit_start, commit_sections, &crypt_comp_1); in write_journal()
1115 for (i = 0; i < commit_sections; i++) in write_journal()
1119 commit_sections, &io_comp); in write_journal()
1135 encrypt_journal(ic, true, 0, commit_sections - to_end, &crypt_comp_1); in write_journal()
1141 encrypt_journal(ic, true, 0, commit_sections - to_end, &crypt_comp_2); in write_journal()
1150 for (i = 0; i < commit_sections - to_end; i++) in write_journal()
1153 rw_journal(ic, REQ_OP_WRITE | REQ_FUA, 0, commit_sections - to_end, &io_comp); in write_journal()
2706 unsigned int commit_start, commit_sections; in integrity_commit() local
2725 commit_sections = ic->n_uncommitted_sections; in integrity_commit()
2728 if (!commit_sections) in integrity_commit()
2734 for (n = 0; n < commit_sections; n++) { in integrity_commit()
2754 write_journal(ic, commit_start, commit_sections); in integrity_commit()
2757 ic->uncommitted_section += commit_sections; in integrity_commit()
2759 ic->n_uncommitted_sections -= commit_sections; in integrity_commit()
2760 ic->n_committed_sections += commit_sections; in integrity_commit()