Searched refs:max_discard_sectors (Results 1 – 3 of 3) sorted by relevance
56 lim->max_discard_sectors = 0; in blk_set_default_limits()240 unsigned int max_discard_sectors) in blk_queue_max_discard_sectors() argument242 q->limits.max_hw_discard_sectors = max_discard_sectors; in blk_queue_max_discard_sectors()243 q->limits.max_discard_sectors = max_discard_sectors; in blk_queue_max_discard_sectors()708 t->max_discard_sectors = min_not_zero(t->max_discard_sectors, in blk_stack_limits()709 b->max_discard_sectors); in blk_stack_limits()
68 unsigned int max_discard_sectors, granularity; in blk_bio_discard_split() local78 max_discard_sectors = min(q->limits.max_discard_sectors, in blk_bio_discard_split()80 max_discard_sectors -= max_discard_sectors % granularity; in blk_bio_discard_split()82 if (unlikely(!max_discard_sectors)) { in blk_bio_discard_split()87 if (bio_sectors(bio) <= max_discard_sectors) in blk_bio_discard_split()90 split_sectors = max_discard_sectors; in blk_bio_discard_split()
182 (unsigned long long)q->limits.max_discard_sectors << 9); in queue_discard_max_show()204 q->limits.max_discard_sectors = max_discard; in queue_discard_max_store()