/linux-6.1.9/block/ |
D | blk-settings.c | 50 lim->discard_granularity = 0; in blk_set_default_limits() 504 granularity = lim->discard_granularity >> SECTOR_SHIFT; in queue_limit_discard_alignment() 656 if (b->discard_granularity) { in blk_stack_limits() 659 if (t->discard_granularity != 0 && in blk_stack_limits() 661 top = t->discard_granularity + t->discard_alignment; in blk_stack_limits() 662 bottom = b->discard_granularity + alignment; in blk_stack_limits() 673 t->discard_granularity = max(t->discard_granularity, in blk_stack_limits() 674 b->discard_granularity); in blk_stack_limits() 676 t->discard_granularity; in blk_stack_limits()
|
D | blk-lib.c | 15 unsigned int discard_granularity = bdev_discard_granularity(bdev); in bio_discard_limit() local 22 round_up(sector, discard_granularity >> SECTOR_SHIFT); in bio_discard_limit() 35 return round_down(UINT_MAX, discard_granularity) >> SECTOR_SHIFT; in bio_discard_limit()
|
D | blk-sysfs.c | 171 return queue_var_show(q->limits.discard_granularity, page); in queue_discard_granularity_show() 196 if (max_discard & (q->limits.discard_granularity - 1)) in queue_discard_max_store()
|
D | blk-merge.c | 118 granularity = max(lim->discard_granularity >> 9, 1U); in bio_split_discard()
|
/linux-6.1.9/drivers/block/ |
D | virtio_blk.c | 899 u32 discard_granularity = 0; in virtblk_probe() local 1057 discard_sector_alignment, &discard_granularity); in virtblk_probe() 1100 discard_granularity = min_not_zero(discard_granularity, v); in virtblk_probe() 1146 if (discard_granularity) in virtblk_probe() 1147 q->limits.discard_granularity = discard_granularity << SECTOR_SHIFT; in virtblk_probe() 1149 q->limits.discard_granularity = blk_size; in virtblk_probe()
|
D | xen-blkfront.c | 221 unsigned int discard_granularity; member 954 rq->limits.discard_granularity = info->discard_granularity ?: in blkif_set_queue_limits() 2149 info->discard_granularity = xenbus_read_unsigned(info->xbdev->otherend, in blkfront_setup_discard()
|
D | ublk_drv.c | 223 q->limits.discard_granularity = p->discard_granularity; in ublk_dev_param_discard_apply() 254 if (!p->discard_granularity) in ublk_validate_params()
|
D | nbd.c | 335 nbd->disk->queue->limits.discard_granularity = blksize; in nbd_set_size() 1330 nbd->disk->queue->limits.discard_granularity = 0; in nbd_config_put() 1802 disk->queue->limits.discard_granularity = 0; in nbd_dev_add()
|
/linux-6.1.9/include/uapi/linux/ |
D | ublk_cmd.h | 209 __u32 discard_granularity; member
|
/linux-6.1.9/drivers/block/rnbd/ |
D | rnbd-proto.h | 141 __le32 discard_granularity; member
|
D | rnbd-clt.c | 1350 dev->queue->limits.discard_granularity = in setup_request_queue() 1351 le32_to_cpu(rsp->discard_granularity); in setup_request_queue() 1634 le32_to_cpu(rsp->discard_granularity), in rnbd_clt_map_device()
|
D | rnbd-srv.c | 551 rsp->discard_granularity = cpu_to_le32(bdev_discard_granularity(bdev)); in rnbd_srv_fill_msg_open_rsp()
|
/linux-6.1.9/drivers/mmc/core/ |
D | queue.c | 187 q->limits.discard_granularity = card->pref_erase << 9; in mmc_queue_setup_discard() 190 q->limits.discard_granularity = SECTOR_SIZE; in mmc_queue_setup_discard()
|
/linux-6.1.9/drivers/block/drbd/ |
D | drbd_worker.c | 594 int discard_granularity = 0; in make_resync_request() local 616 discard_granularity = rcu_dereference(device->ldev->disk_conf)->rs_discard_granularity; in make_resync_request() 684 if (discard_granularity && size == discard_granularity) in make_resync_request() 734 size == discard_granularity ? P_RS_THIN_REQ : P_RS_DATA_REQUEST, in make_resync_request()
|
D | drbd_nl.c | 1194 q->limits.discard_granularity = granularity; in blk_queue_discard_granularity() 1445 unsigned int discard_granularity = bdev_discard_granularity(bdev); in sanitize_disk_conf() local 1448 if (discard_granularity > disk_conf->rs_discard_granularity) in sanitize_disk_conf() 1449 disk_conf->rs_discard_granularity = discard_granularity; in sanitize_disk_conf() 1452 discard_granularity; in sanitize_disk_conf()
|
/linux-6.1.9/fs/ntfs3/ |
D | super.c | 929 sbi->discard_granularity = bdev_discard_granularity(bdev); in ntfs_fill_super() 931 ~(u64)(sbi->discard_granularity - 1); in ntfs_fill_super() 1339 start = (lbo + sbi->discard_granularity - 1) & in ntfs_discard()
|
/linux-6.1.9/fs/f2fs/ |
D | sysfs.c | 791 F2FS_RW_ATTR(DCC_INFO, discard_cmd_control, discard_granularity, discard_granularity); 920 ATTR_LIST(discard_granularity),
|
D | segment.h | 922 if (i + 1 < dcc->discard_granularity) in wake_up_discard_thread()
|
/linux-6.1.9/drivers/md/ |
D | dm-clone-target.c | 2052 limits->discard_granularity = clone->region_size << SECTOR_SHIFT; in set_discard_limits() 2064 limits->discard_granularity = dest_limits->discard_granularity; in set_discard_limits()
|
D | dm-cache-target.c | 3368 limits->discard_granularity = cache->discard_block_size << SECTOR_SHIFT; in set_discard_limits() 3378 limits->discard_granularity = origin_limits->discard_granularity; in set_discard_limits()
|
D | dm-log-writes.c | 872 limits->discard_granularity = lc->sectorsize; in log_writes_io_hints()
|
/linux-6.1.9/Documentation/ABI/stable/ |
D | sysfs-block | 216 What: /sys/block/<disk>/queue/discard_granularity 222 block size. The discard_granularity parameter indicates the size 224 device. Otherwise the discard_granularity will be set to match 225 the device's physical block size. A discard_granularity of 0
|
/linux-6.1.9/include/linux/ |
D | blkdev.h | 302 unsigned int discard_granularity; member 1242 return bdev_get_queue(bdev)->limits.discard_granularity; in bdev_discard_granularity()
|
/linux-6.1.9/drivers/mtd/ |
D | mtd_blkdevs.c | 381 new->rq->limits.discard_granularity = tr->blksize; in add_mtd_blktrans_dev()
|
/linux-6.1.9/drivers/s390/block/ |
D | dasd_fba.c | 784 q->limits.discard_granularity = logical_block_size; in dasd_fba_setup_blk_queue()
|