Lines Matching refs:journal_sections

72 	__le32 journal_sections;  member
204 unsigned journal_sections; member
489 if (unlikely(*sec_ptr >= ic->journal_sections)) in wraparound_section()
490 *sec_ptr -= ic->journal_sections; in wraparound_section()
732 if (unlikely(section >= ic->journal_sections) || in access_journal_check()
735 function, section, offset, ic->journal_sections, limit); in access_journal_check()
1123 if (commit_start + commit_sections <= ic->journal_sections) { in write_journal()
1140 to_end = ic->journal_sections - commit_start; in write_journal()
1405 if (next_section + ic->journal_sections < ic->committed_section + ic->n_committed_sections) in find_newer_committed_node()
2342 if (WARN_ON(ic->journal_sections * ic->journal_section_entries != in pad_uncommitted()
2348 ic->journal_sections, ic->journal_section_entries, in pad_uncommitted()
2394 if (unlikely(i >= ic->journal_sections)) in integrity_commit()
2920 rw_journal(ic, REQ_OP_READ, 0, ic->journal_sections, NULL); in replay_journal()
2928 encrypt_journal(ic, false, 0, ic->journal_sections, &crypt_comp); in replay_journal()
2940 for (i = 0; i < ic->journal_sections; i++) { in replay_journal()
2985 if (unlikely(write_start >= ic->journal_sections)) in replay_journal()
2990 for (write_sections = 0; write_sections < ic->journal_sections; write_sections++) { in replay_journal()
3006 if (unlikely(i >= ic->journal_sections)) in replay_journal()
3018 if (write_sections == ic->journal_sections && (ic->mode == 'J' || journal_empty)) { in replay_journal()
3033 if (ic->journal_sections >= 2) { in replay_journal()
3034 init_journal(ic, s, ic->journal_sections - 2, erase_seq); in replay_journal()
3035 s += ic->journal_sections - 2; in replay_journal()
3108 ic->journal_sections - ic->free_section, ic->commit_seq); in dm_integrity_postsuspend()
3120 init_journal(ic, 0, ic->journal_sections, 0); in dm_integrity_postsuspend()
3194 init_journal(ic, 0, ic->journal_sections, 0); in dm_integrity_resume()
3389 ic->journal_sections = le32_to_cpu(ic->sb->journal_sections); in calculate_journal_section_size()
3398 ic->journal_entries = ic->journal_section_entries * ic->journal_sections; in calculate_journal_section_size()
3406 initial_sectors = SB_SECTORS + (__u64)ic->journal_section_sectors * ic->journal_sections; in calculate_device_limits()
3466 unsigned journal_sections; in initialize_superblock() local
3477 journal_sections = journal_sectors / ic->journal_section_sectors; in initialize_superblock()
3478 if (!journal_sections) in initialize_superblock()
3479 journal_sections = 1; in initialize_superblock()
3489 ic->sb->journal_sections = cpu_to_le32(journal_sections); in initialize_superblock()
3507 ic->sb->journal_sections = cpu_to_le32(0); in initialize_superblock()
3508 for (test_bit = fls(journal_sections) - 1; test_bit >= 0; test_bit--) { in initialize_superblock()
3509 __u32 prev_journal_sections = le32_to_cpu(ic->sb->journal_sections); in initialize_superblock()
3511 if (test_journal_sections > journal_sections) in initialize_superblock()
3513 ic->sb->journal_sections = cpu_to_le32(test_journal_sections); in initialize_superblock()
3515 ic->sb->journal_sections = cpu_to_le32(prev_journal_sections); in initialize_superblock()
3518 if (!le32_to_cpu(ic->sb->journal_sections)) { in initialize_superblock()
3587 for (i = 0; i < ic->journal_sections; i++) in dm_integrity_free_journal_scatterlist()
3598 sl = kvmalloc_array(ic->journal_sections, in dm_integrity_alloc_journal_scatterlist()
3604 for (i = 0; i < ic->journal_sections; i++) { in dm_integrity_alloc_journal_scatterlist()
3724 journal_pages = roundup((__u64)ic->journal_sections * ic->journal_section_sectors, in create_journal()
3865 ic->sk_requests = kvmalloc_array(ic->journal_sections, in create_journal()
3873 for (i = 0; i < ic->journal_sections; i++) { in create_journal()
4307 if (!le32_to_cpu(ic->sb->journal_sections)) { in dm_integrity_ctr()
4358 …bits_in_journal = ((__u64)ic->journal_section_sectors * ic->journal_sections) << (SECTOR_SHIFT + 3… in dm_integrity_ctr()
4394 DEBUG_print(" journal_sections %u\n", (unsigned)le32_to_cpu(ic->sb->journal_sections)); in dm_integrity_ctr()
4506 init_journal(ic, 0, ic->journal_sections, 0); in dm_integrity_ctr()
4599 for (i = 0; i < ic->journal_sections; i++) { in dm_integrity_dtr()