Home
last modified time | relevance | path

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

/block/
Dblk-lib.c46 sector_t max_discard_sectors; in blkdev_issue_discard() local
68 max_discard_sectors = min(q->limits.max_discard_sectors, UINT_MAX >> 9); in blkdev_issue_discard()
69 sector_div(max_discard_sectors, granularity); in blkdev_issue_discard()
70 max_discard_sectors *= granularity; in blkdev_issue_discard()
71 if (unlikely(!max_discard_sectors)) { in blkdev_issue_discard()
97 req_sects = min_t(sector_t, nr_sects, max_discard_sectors); in blkdev_issue_discard()
Dblk-settings.c117 lim->max_discard_sectors = 0; in blk_set_default_limits()
284 unsigned int max_discard_sectors) in blk_queue_max_discard_sectors() argument
286 q->limits.max_discard_sectors = max_discard_sectors; in blk_queue_max_discard_sectors()
618 t->max_discard_sectors = min_not_zero(t->max_discard_sectors, in blk_stack_limits()
619 b->max_discard_sectors); in blk_stack_limits()
Dblk-sysfs.c175 (unsigned long long)q->limits.max_discard_sectors << 9); in queue_discard_max_show()