Lines Matching refs:sectors_per_block
106 #define journal_entry_tag(ic, je) ((__u8 *)&(je)->last_bytes[(ic)->sectors_per_block])
212 __u8 sectors_per_block; member
438 BUG_ON((n) & (unsigned)((ic)->sectors_per_block - 1)); \
1183 BUG_ON((target | n_sectors | offset) & (unsigned)(ic->sectors_per_block - 1)); in copy_from_journal()
1224 BUG_ON((new_range->logical_sector | new_range->n_sectors) & (unsigned)(ic->sectors_per_block - 1)); in add_new_range()
1679 r = crypto_shash_update(req, data, ic->sectors_per_block << SECTOR_SHIFT); in integrity_sector_checksum()
1783 sectors_to_process -= ic->sectors_per_block; in integrity_metadata()
1784 pos += ic->sectors_per_block << SECTOR_SHIFT; in integrity_metadata()
1785 sector += ic->sectors_per_block; in integrity_metadata()
1900 …if (unlikely((dio->range.logical_sector | bio_sectors(bio)) & (unsigned)(ic->sectors_per_block - 1… in dm_integrity_map()
1902 ic->sectors_per_block, in dm_integrity_map()
1907 if (ic->sectors_per_block > 1 && likely(dio->op != REQ_OP_DISCARD)) { in dm_integrity_map()
1911 if (unlikely(bv.bv_len & ((ic->sectors_per_block << SECTOR_SHIFT) - 1))) { in dm_integrity_map()
1913 bv.bv_offset, bv.bv_len, ic->sectors_per_block); in dm_integrity_map()
1998 } while (++s < ic->sectors_per_block); in __journal_read_write()
2043 memcpy(js, mem + bv.bv_offset, ic->sectors_per_block << SECTOR_SHIFT); in __journal_read_write()
2048 } while (++s < ic->sectors_per_block); in __journal_read_write()
2062 logical_sector += ic->sectors_per_block; in __journal_read_write()
2071 bv.bv_offset += ic->sectors_per_block << SECTOR_SHIFT; in __journal_read_write()
2072 } while (bv.bv_len -= ic->sectors_per_block << SECTOR_SHIFT); in __journal_read_write()
2177 } while ((i += ic->sectors_per_block) < dio->range.n_sectors); in dm_integrity_map_continue()
2190 for (i = ic->sectors_per_block; i < dio->range.n_sectors; i += ic->sectors_per_block, jp++) { in dm_integrity_map_continue()
2212 dio->range.n_sectors = ic->sectors_per_block; in dm_integrity_map_continue()
2440 } while (++s < ic->sectors_per_block); in restore_last_bytes()
2475 if (unlikely(sec & (unsigned)(ic->sectors_per_block - 1))) { in do_journal_write()
2477 sec &= ~(sector_t)(ic->sectors_per_block - 1); in do_journal_write()
2520 sec += ic->sectors_per_block; in do_journal_write()
2521 offset += ic->sectors_per_block; in do_journal_write()
2683 ic->sectors_per_block, BITMAP_OP_TEST_ALL_CLEAR)) { in integrity_recalc()
2684 logical_sector += ic->sectors_per_block; in integrity_recalc()
2685 n_sectors -= ic->sectors_per_block; in integrity_recalc()
2688 while (block_bitmap_op(ic, ic->recalc_bitmap, logical_sector + n_sectors - ic->sectors_per_block, in integrity_recalc()
2689 ic->sectors_per_block, BITMAP_OP_TEST_ALL_CLEAR)) { in integrity_recalc()
2690 n_sectors -= ic->sectors_per_block; in integrity_recalc()
2725 for (i = 0; i < n_sectors; i += ic->sectors_per_block) { in integrity_recalc()
3278 arg_count += ic->sectors_per_block != 1; in dm_integrity_status()
3296 if (ic->sectors_per_block != 1) in dm_integrity_status()
3297 DMEMIT(" block_size:%u", ic->sectors_per_block << SECTOR_SHIFT); in dm_integrity_status()
3312 …DMEMIT(" sectors_per_bit:%llu", (sector_t)ic->sectors_per_block << ic->log2_blocks_per_bitmap_bit); in dm_integrity_status()
3342 if (ic->sectors_per_block != 1) in dm_integrity_status()
3343 DMEMIT(",block_size=%u", ic->sectors_per_block << SECTOR_SHIFT); in dm_integrity_status()
3377 if (ic->sectors_per_block > 1) { in dm_integrity_io_hints()
3378 limits->logical_block_size = ic->sectors_per_block << SECTOR_SHIFT; in dm_integrity_io_hints()
3379 limits->physical_block_size = ic->sectors_per_block << SECTOR_SHIFT; in dm_integrity_io_hints()
3380 blk_limits_io_min(limits, ic->sectors_per_block << SECTOR_SHIFT); in dm_integrity_io_hints()
3390 …ic->journal_entry_size = roundup(offsetof(struct journal_entry, last_bytes[ic->sectors_per_block])… in calculate_journal_section_size()
3460 ic->provided_data_sectors &= ~(sector_t)(ic->sectors_per_block - 1); in get_provided_data_sectors()
3472 ic->sb->log2_sectors_per_block = __ffs(ic->sectors_per_block); in initialize_superblock()
4051 ic->sectors_per_block = 1; in dm_integrity_ctr()
4098 ic->sectors_per_block = val >> SECTOR_SHIFT; in dm_integrity_ctr()
4302 if (ic->sb->log2_sectors_per_block != __ffs(ic->sectors_per_block)) { in dm_integrity_ctr()
4526 …unsigned max_io_len = ((sector_t)ic->sectors_per_block << ic->log2_blocks_per_bitmap_bit) * (BITMA… in dm_integrity_ctr()