Lines Matching refs:journal_sections
64 __u32 journal_sections; member
190 unsigned journal_sections; member
460 if (unlikely(*sec_ptr >= ic->journal_sections)) in wraparound_section()
461 *sec_ptr -= ic->journal_sections; in wraparound_section()
632 if (unlikely(section >= ic->journal_sections) || in access_journal_check()
635 function, section, offset, ic->journal_sections, limit); in access_journal_check()
1002 if (commit_start + commit_sections <= ic->journal_sections) { in write_journal()
1019 to_end = ic->journal_sections - commit_start; in write_journal()
1284 if (next_section + ic->journal_sections < ic->committed_section + ic->n_committed_sections) in find_newer_committed_node()
2067 if (WARN_ON(ic->journal_sections * ic->journal_section_entries != in pad_uncommitted()
2073 ic->journal_sections, ic->journal_section_entries, in pad_uncommitted()
2117 if (unlikely(i >= ic->journal_sections)) in integrity_commit()
2629 rw_journal(ic, REQ_OP_READ, 0, 0, ic->journal_sections, NULL); in replay_journal()
2637 encrypt_journal(ic, false, 0, ic->journal_sections, &crypt_comp); in replay_journal()
2649 for (i = 0; i < ic->journal_sections; i++) { in replay_journal()
2694 if (unlikely(write_start >= ic->journal_sections)) in replay_journal()
2699 for (write_sections = 0; write_sections < ic->journal_sections; write_sections++) { in replay_journal()
2715 if (unlikely(i >= ic->journal_sections)) in replay_journal()
2727 if (write_sections == ic->journal_sections && (ic->mode == 'J' || journal_empty)) { in replay_journal()
2742 if (ic->journal_sections >= 2) { in replay_journal()
2743 init_journal(ic, s, ic->journal_sections - 2, erase_seq); in replay_journal()
2744 s += ic->journal_sections - 2; in replay_journal()
2824 init_journal(ic, 0, ic->journal_sections, 0); in dm_integrity_postsuspend()
2876 init_journal(ic, 0, ic->journal_sections, 0); in dm_integrity_resume()
3020 ic->journal_sections = le32_to_cpu(ic->sb->journal_sections); in calculate_journal_section_size()
3029 ic->journal_entries = ic->journal_section_entries * ic->journal_sections; in calculate_journal_section_size()
3037 initial_sectors = SB_SECTORS + (__u64)ic->journal_section_sectors * ic->journal_sections; in calculate_device_limits()
3073 unsigned journal_sections; in initialize_superblock() local
3084 journal_sections = journal_sectors / ic->journal_section_sectors; in initialize_superblock()
3085 if (!journal_sections) in initialize_superblock()
3086 journal_sections = 1; in initialize_superblock()
3089 ic->sb->journal_sections = cpu_to_le32(journal_sections); in initialize_superblock()
3112 ic->sb->journal_sections = cpu_to_le32(0); in initialize_superblock()
3113 for (test_bit = fls(journal_sections) - 1; test_bit >= 0; test_bit--) { in initialize_superblock()
3114 __u32 prev_journal_sections = le32_to_cpu(ic->sb->journal_sections); in initialize_superblock()
3116 if (test_journal_sections > journal_sections) in initialize_superblock()
3118 ic->sb->journal_sections = cpu_to_le32(test_journal_sections); in initialize_superblock()
3120 ic->sb->journal_sections = cpu_to_le32(prev_journal_sections); in initialize_superblock()
3123 if (!le32_to_cpu(ic->sb->journal_sections)) { in initialize_superblock()
3192 for (i = 0; i < ic->journal_sections; i++) in dm_integrity_free_journal_scatterlist()
3203 sl = kvmalloc_array(ic->journal_sections, in dm_integrity_alloc_journal_scatterlist()
3209 for (i = 0; i < ic->journal_sections; i++) { in dm_integrity_alloc_journal_scatterlist()
3329 journal_pages = roundup((__u64)ic->journal_sections * ic->journal_section_sectors, in create_journal()
3470 ic->sk_requests = kvmalloc_array(ic->journal_sections, in create_journal()
3478 for (i = 0; i < ic->journal_sections; i++) { in create_journal()
3885 if (!le32_to_cpu(ic->sb->journal_sections)) { in dm_integrity_ctr()
3936 …bits_in_journal = ((__u64)ic->journal_section_sectors * ic->journal_sections) << (SECTOR_SHIFT + 3… in dm_integrity_ctr()
3972 DEBUG_print(" journal_sections %u\n", (unsigned)le32_to_cpu(ic->sb->journal_sections)); in dm_integrity_ctr()
4070 init_journal(ic, 0, ic->journal_sections, 0); in dm_integrity_ctr()
4155 for (i = 0; i < ic->journal_sections; i++) { in dm_integrity_dtr()