Home
last modified time | relevance | path

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

/block/
Dblk-lib.c46 unsigned int granularity; in blkdev_issue_discard() local
60 granularity = max(q->limits.discard_granularity >> 9, 1U); in blkdev_issue_discard()
61 alignment = (bdev_discard_alignment(bdev) >> 9) % granularity; in blkdev_issue_discard()
94 sector_div(tmp, granularity) != alignment) { in blkdev_issue_discard()
96 sector_div(end_sect, granularity); in blkdev_issue_discard()
97 end_sect = end_sect * granularity + alignment; in blkdev_issue_discard()
Dblk-merge.c17 unsigned int max_discard_sectors, granularity; in blk_bio_discard_split() local
25 granularity = max(q->limits.discard_granularity >> 9, 1U); in blk_bio_discard_split()
28 max_discard_sectors -= max_discard_sectors % granularity; in blk_bio_discard_split()
44 alignment = (q->limits.discard_alignment >> 9) % granularity; in blk_bio_discard_split()
47 tmp = sector_div(tmp, granularity); in blk_bio_discard_split()