Home
last modified time | relevance | path

Searched refs:alignment (Results 1 – 3 of 3) sorted by relevance

/block/
Dblk-lib.c47 int alignment; in blkdev_issue_discard() local
61 alignment = (bdev_discard_alignment(bdev) >> 9) % granularity; in blkdev_issue_discard()
94 sector_div(tmp, granularity) != alignment) { in blkdev_issue_discard()
95 end_sect = end_sect - alignment; in blkdev_issue_discard()
97 end_sect = end_sect * granularity + alignment; in blkdev_issue_discard()
Dblk-settings.c529 unsigned int top, bottom, alignment, ret = 0; in blk_stack_limits() local
552 alignment = queue_limit_alignment_offset(b, start); in blk_stack_limits()
557 if (t->alignment_offset != alignment) { in blk_stack_limits()
561 bottom = max(b->physical_block_size, b->io_min) + alignment; in blk_stack_limits()
608 t->alignment_offset = lcm_not_zero(t->alignment_offset, alignment) in blk_stack_limits()
623 alignment = queue_limit_discard_alignment(b, start); in blk_stack_limits()
626 t->discard_alignment != alignment) { in blk_stack_limits()
628 bottom = b->discard_granularity + alignment; in blk_stack_limits()
641 t->discard_alignment = lcm_not_zero(t->discard_alignment, alignment) % in blk_stack_limits()
Dblk-merge.c18 int alignment; in blk_bio_discard_split() local
44 alignment = (q->limits.discard_alignment >> 9) % granularity; in blk_bio_discard_split()
46 tmp = bio->bi_iter.bi_sector + split_sectors - alignment; in blk_bio_discard_split()