Searched refs:granularity (Results 1 – 2 of 2) sorted by relevance
32 unsigned int granularity; in __blkdev_issue_discard() local55 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()
20 unsigned int max_discard_sectors, granularity; in blk_bio_discard_split() local28 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()