Home
last modified time | relevance | path

Searched refs:granularity (Results 1 – 2 of 2) sorted by relevance

/block/
Dblk-lib.c32 unsigned int granularity; in __blkdev_issue_discard() local
55 granularity = max(q->limits.discard_granularity >> 9, 1U); in __blkdev_issue_discard()
56 alignment = (bdev_discard_alignment(bdev) >> 9) % granularity; in __blkdev_issue_discard()
80 sector_div(tmp, granularity) != alignment) { in __blkdev_issue_discard()
82 sector_div(end_sect, granularity); in __blkdev_issue_discard()
83 end_sect = end_sect * granularity + alignment; in __blkdev_issue_discard()
Dblk-merge.c20 unsigned int max_discard_sectors, granularity; in blk_bio_discard_split() local
28 granularity = max(q->limits.discard_granularity >> 9, 1U); in blk_bio_discard_split()
31 max_discard_sectors -= max_discard_sectors % granularity; in blk_bio_discard_split()
47 alignment = (q->limits.discard_alignment >> 9) % granularity; in blk_bio_discard_split()
50 tmp = sector_div(tmp, granularity); in blk_bio_discard_split()