Searched refs:max_discard_sectors (Results 1 – 4 of 4) sorted by relevance
102 lim->max_discard_sectors = 0; in blk_set_default_limits()282 unsigned int max_discard_sectors) in blk_queue_max_discard_sectors() argument284 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()
20 unsigned int max_discard_sectors, granularity; in blk_bio_discard_split() local30 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()
67 q->limits.max_discard_sectors); in __blkdev_issue_discard()
185 (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()