Home
last modified time | relevance | path

Searched refs:max_discard_sectors (Results 1 – 4 of 4) sorted by relevance

/block/
Dblk-settings.c102 lim->max_discard_sectors = 0; in blk_set_default_limits()
282 unsigned int max_discard_sectors) in blk_queue_max_discard_sectors() argument
284 q->limits.max_hw_discard_sectors = max_discard_sectors; in blk_queue_max_discard_sectors()
285 q->limits.max_discard_sectors = max_discard_sectors; in blk_queue_max_discard_sectors()
656 t->max_discard_sectors = min_not_zero(t->max_discard_sectors, in blk_stack_limits()
657 b->max_discard_sectors); in blk_stack_limits()
Dblk-merge.c20 unsigned int max_discard_sectors, granularity; in blk_bio_discard_split() local
30 max_discard_sectors = min(q->limits.max_discard_sectors, UINT_MAX >> 9); in blk_bio_discard_split()
31 max_discard_sectors -= max_discard_sectors % granularity; in blk_bio_discard_split()
33 if (unlikely(!max_discard_sectors)) { in blk_bio_discard_split()
38 if (bio_sectors(bio) <= max_discard_sectors) in blk_bio_discard_split()
41 split_sectors = max_discard_sectors; in blk_bio_discard_split()
Dblk-lib.c67 q->limits.max_discard_sectors); in __blkdev_issue_discard()
Dblk-sysfs.c185 (unsigned long long)q->limits.max_discard_sectors << 9); in queue_discard_max_show()
207 q->limits.max_discard_sectors = max_discard; in queue_discard_max_store()