Lines Matching refs:commit_sections
999 …atic void write_journal(struct dm_integrity_c *ic, unsigned commit_start, unsigned commit_sections) in write_journal() argument
1009 if (commit_start + commit_sections <= ic->journal_sections) { in write_journal()
1015 encrypt_journal(ic, true, commit_start, commit_sections, &crypt_comp_1); in write_journal()
1018 for (i = 0; i < commit_sections; i++) in write_journal()
1022 commit_sections, &io_comp); in write_journal()
1036 encrypt_journal(ic, true, 0, commit_sections - to_end, &crypt_comp_1); in write_journal()
1042 encrypt_journal(ic, true, 0, commit_sections - to_end, &crypt_comp_2); in write_journal()
1051 for (i = 0; i < commit_sections - to_end; i++) in write_journal()
1054 rw_journal(ic, REQ_OP_WRITE, REQ_FUA, 0, commit_sections - to_end, &io_comp); in write_journal()
2188 unsigned commit_start, commit_sections; in integrity_commit() local
2204 commit_sections = ic->n_uncommitted_sections; in integrity_commit()
2207 if (!commit_sections) in integrity_commit()
2211 for (n = 0; n < commit_sections; n++) { in integrity_commit()
2229 write_journal(ic, commit_start, commit_sections); in integrity_commit()
2232 ic->uncommitted_section += commit_sections; in integrity_commit()
2234 ic->n_uncommitted_sections -= commit_sections; in integrity_commit()
2235 ic->n_committed_sections += commit_sections; in integrity_commit()