max_discard_sectors 66 block/blk-merge.c unsigned int max_discard_sectors, granularity; max_discard_sectors 76 block/blk-merge.c max_discard_sectors = min(q->limits.max_discard_sectors, max_discard_sectors 78 block/blk-merge.c max_discard_sectors -= max_discard_sectors % granularity; max_discard_sectors 80 block/blk-merge.c if (unlikely(!max_discard_sectors)) { max_discard_sectors 85 block/blk-merge.c if (bio_sectors(bio) <= max_discard_sectors) max_discard_sectors 88 block/blk-merge.c split_sectors = max_discard_sectors; max_discard_sectors 51 block/blk-settings.c lim->max_discard_sectors = 0; max_discard_sectors 228 block/blk-settings.c unsigned int max_discard_sectors) max_discard_sectors 230 block/blk-settings.c q->limits.max_hw_discard_sectors = max_discard_sectors; max_discard_sectors 231 block/blk-settings.c q->limits.max_discard_sectors = max_discard_sectors; max_discard_sectors 603 block/blk-settings.c t->max_discard_sectors = min_not_zero(t->max_discard_sectors, max_discard_sectors 604 block/blk-settings.c b->max_discard_sectors); max_discard_sectors 178 block/blk-sysfs.c (unsigned long long)q->limits.max_discard_sectors << 9); max_discard_sectors 200 block/blk-sysfs.c q->limits.max_discard_sectors = max_discard; max_discard_sectors 1229 drivers/block/drbd/drbd_nl.c q->limits.max_discard_sectors = drbd_max_discard_sectors(connection); max_discard_sectors 1235 drivers/block/drbd/drbd_nl.c q->limits.max_discard_sectors = 0; max_discard_sectors 1539 drivers/block/drbd/drbd_nl.c if (disk_conf->rs_discard_granularity > q->limits.max_discard_sectors << 9) max_discard_sectors 1540 drivers/block/drbd/drbd_nl.c disk_conf->rs_discard_granularity = q->limits.max_discard_sectors << 9; max_discard_sectors 1516 drivers/block/drbd/drbd_receiver.c unsigned int max_discard_sectors, granularity; max_discard_sectors 1527 drivers/block/drbd/drbd_receiver.c max_discard_sectors = min(q->limits.max_discard_sectors, (1U << 22)); max_discard_sectors 1528 drivers/block/drbd/drbd_receiver.c max_discard_sectors -= max_discard_sectors % granularity; max_discard_sectors 1529 drivers/block/drbd/drbd_receiver.c if (unlikely(!max_discard_sectors)) max_discard_sectors 1550 drivers/block/drbd/drbd_receiver.c while (nr_sectors >= max_discard_sectors) { max_discard_sectors 1551 drivers/block/drbd/drbd_receiver.c err |= blkdev_issue_discard(bdev, start, max_discard_sectors, GFP_NOIO, 0); max_discard_sectors 1552 drivers/block/drbd/drbd_receiver.c nr_sectors -= max_discard_sectors; max_discard_sectors 1553 drivers/block/drbd/drbd_receiver.c start += max_discard_sectors; max_discard_sectors 963 drivers/block/virtio_blk.c max_discard_sectors, &v); max_discard_sectors 3459 drivers/md/dm-cache-target.c else if (origin_limits->max_discard_sectors < cache->sectors_per_block) max_discard_sectors 3476 drivers/md/dm-cache-target.c limits->max_discard_sectors = min_t(sector_t, cache->discard_block_size * 1024, max_discard_sectors 3486 drivers/md/dm-cache-target.c limits->max_discard_sectors = origin_limits->max_discard_sectors; max_discard_sectors 2061 drivers/md/dm-clone-target.c else if (dest_limits->max_discard_sectors < clone->region_size) max_discard_sectors 2079 drivers/md/dm-clone-target.c limits->max_discard_sectors = round_down(UINT_MAX >> SECTOR_SHIFT, clone->region_size); max_discard_sectors 2088 drivers/md/dm-clone-target.c limits->max_discard_sectors = dest_limits->max_discard_sectors; max_discard_sectors 315 drivers/md/dm-io.c special_cmd_max_sectors = q->limits.max_discard_sectors; max_discard_sectors 895 drivers/md/dm-log-writes.c limits->max_discard_sectors = (UINT_MAX >> SECTOR_SHIFT); max_discard_sectors 3752 drivers/md/dm-raid.c limits->max_discard_sectors = rs->md.chunk_sectors; max_discard_sectors 226 drivers/md/dm-rq.c !clone->q->limits.max_discard_sectors) max_discard_sectors 2399 drivers/md/dm-snap.c limits->max_discard_sectors = snap->store->chunk_size; max_discard_sectors 1905 drivers/md/dm-table.c q->limits.max_discard_sectors = 0; max_discard_sectors 2869 drivers/md/dm-thin.c else if (data_limits->max_discard_sectors < pool->sectors_per_block) max_discard_sectors 4499 drivers/md/dm-thin.c limits->max_discard_sectors = 2048 * 1024 * 16; /* 16G */ max_discard_sectors 908 drivers/md/dm-zoned-target.c limits->max_discard_sectors = chunk_sectors; max_discard_sectors 953 drivers/md/dm.c limits->max_discard_sectors = 0; max_discard_sectors 983 drivers/md/dm.c !bio->bi_disk->queue->limits.max_discard_sectors) max_discard_sectors 7479 drivers/md/raid5.c mddev->queue->limits.max_discard_sectors >= (stripe >> 9) && max_discard_sectors 779 drivers/s390/block/dasd_fba.c unsigned int max_bytes, max_discard_sectors; max_discard_sectors 798 drivers/s390/block/dasd_fba.c max_discard_sectors = max_bytes / logical_block_size; max_discard_sectors 800 drivers/s390/block/dasd_fba.c blk_queue_max_discard_sectors(q, max_discard_sectors); max_discard_sectors 801 drivers/s390/block/dasd_fba.c blk_queue_max_write_zeroes_sectors(q, max_discard_sectors); max_discard_sectors 824 drivers/target/target_core_device.c q->limits.max_discard_sectors >> (ilog2(block_size) - 9); max_discard_sectors 1121 fs/f2fs/segment.c SECTOR_TO_BLOCK(q->limits.max_discard_sectors); max_discard_sectors 1303 fs/f2fs/segment.c SECTOR_TO_BLOCK(q->limits.max_discard_sectors); max_discard_sectors 335 include/linux/blkdev.h unsigned int max_discard_sectors; max_discard_sectors 997 include/linux/blkdev.h return min(q->limits.max_discard_sectors, max_discard_sectors 1078 include/linux/blkdev.h unsigned int max_discard_sectors); max_discard_sectors 1384 include/linux/blkdev.h if (!lim->max_discard_sectors) max_discard_sectors 97 include/uapi/linux/virtio_blk.h __u32 max_discard_sectors;