/kernel/linux/linux-5.10/block/ |
D | blk-settings.c | 54 lim->discard_granularity = 0; in blk_set_default_limits() 610 if (b->discard_granularity) { in blk_stack_limits() 613 if (t->discard_granularity != 0 && in blk_stack_limits() 615 top = t->discard_granularity + t->discard_alignment; in blk_stack_limits() 616 bottom = b->discard_granularity + alignment; in blk_stack_limits() 627 t->discard_granularity = max(t->discard_granularity, in blk_stack_limits() 628 b->discard_granularity); in blk_stack_limits() 630 t->discard_granularity; in blk_stack_limits()
|
D | blk-lib.c | 51 if (WARN_ON_ONCE(!q->limits.discard_granularity)) { in __blkdev_issue_discard() 75 q->limits.discard_granularity >> SECTOR_SHIFT); in __blkdev_issue_discard()
|
D | blk-sysfs.c | 166 return queue_var_show(q->limits.discard_granularity, page); in queue_discard_granularity_show() 191 if (max_discard & (q->limits.discard_granularity - 1)) in queue_discard_max_store()
|
D | blk.h | 285 return round_down(UINT_MAX, q->limits.discard_granularity) >> in bio_aligned_discard_max_sectors()
|
/kernel/linux/linux-5.10/drivers/block/rnbd/ |
D | rnbd-srv-dev.h | 75 return bdev_get_queue(dev->bdev)->limits.discard_granularity; in rnbd_dev_get_discard_granularity()
|
D | rnbd-clt.h | 118 u32 discard_granularity; member
|
D | rnbd-proto.h | 135 __le32 discard_granularity; member
|
D | rnbd-clt.c | 87 dev->discard_granularity = le32_to_cpu(rsp->discard_granularity); in rnbd_clt_set_dev_attr() 1299 dev->queue->limits.discard_granularity = dev->discard_granularity; in setup_request_queue() 1535 dev->discard_granularity, dev->discard_alignment, in rnbd_clt_map_device()
|
D | rnbd-srv.c | 555 rsp->discard_granularity = in rnbd_srv_fill_msg_open_rsp()
|
/kernel/linux/linux-5.10/fs/jfs/ |
D | ioctl.c | 142 q->limits.discard_granularity); in jfs_ioctl()
|
/kernel/linux/linux-5.10/Documentation/ABI/testing/ |
D | sysfs-block | 193 What: /sys/block/<disk>/queue/discard_granularity 199 than the logical block size. The discard_granularity 202 discard_granularity will be set to match the device's 203 physical block size. A discard_granularity of 0 means
|
/kernel/linux/linux-5.10/fs/xfs/ |
D | xfs_discard.c | 156 unsigned int granularity = q->limits.discard_granularity; in xfs_ioc_trim()
|
/kernel/linux/linux-5.10/drivers/mmc/core/ |
D | queue.c | 190 q->limits.discard_granularity = card->pref_erase << 9; in mmc_queue_setup_discard() 193 q->limits.discard_granularity = SECTOR_SIZE; in mmc_queue_setup_discard()
|
/kernel/linux/linux-5.10/drivers/block/rsxx/ |
D | dev.c | 269 card->queue->limits.discard_granularity = RSXX_HW_BLK_SIZE; in rsxx_setup_dev()
|
/kernel/linux/linux-5.10/drivers/block/drbd/ |
D | drbd_worker.c | 599 int discard_granularity = 0; in make_resync_request() local 621 discard_granularity = rcu_dereference(device->ldev->disk_conf)->rs_discard_granularity; in make_resync_request() 689 if (discard_granularity && size == discard_granularity) in make_resync_request() 739 size == discard_granularity ? P_RS_THIN_REQ : P_RS_DATA_REQUEST, in make_resync_request()
|
/kernel/linux/linux-5.10/fs/f2fs/ |
D | sysfs.c | 553 F2FS_RW_ATTR(DCC_INFO, discard_cmd_control, discard_granularity, discard_granularity); 663 ATTR_LIST(discard_granularity),
|
/kernel/linux/linux-5.10/drivers/block/ |
D | virtio_blk.c | 871 q->limits.discard_granularity = v << SECTOR_SHIFT; in virtblk_probe() 873 q->limits.discard_granularity = blk_size; in virtblk_probe()
|
D | xen-blkfront.c | 219 unsigned int discard_granularity; member 967 rq->limits.discard_granularity = info->discard_granularity ?: in blkif_set_queue_limits() 2259 info->discard_granularity = xenbus_read_unsigned(info->xbdev->otherend, in blkfront_setup_discard()
|
D | loop.c | 884 granularity = backingq->limits.discard_granularity ?: in loop_config_discard() 903 q->limits.discard_granularity = granularity; in loop_config_discard() 908 q->limits.discard_granularity = 0; in loop_config_discard()
|
D | nbd.c | 311 nbd->disk->queue->limits.discard_granularity = config->blksize; in nbd_size_update() 1309 nbd->disk->queue->limits.discard_granularity = 0; in nbd_config_put() 1823 disk->queue->limits.discard_granularity = 0; in nbd_dev_add()
|
/kernel/linux/linux-5.10/drivers/nvme/target/ |
D | io-cmd-bdev.c | 43 id->npdg = to0based(ql->discard_granularity / ql->logical_block_size); in nvmet_bdev_set_limits()
|
/kernel/linux/linux-5.10/drivers/md/ |
D | dm-clone-target.c | 2068 limits->discard_granularity = clone->region_size << SECTOR_SHIFT; in set_discard_limits() 2080 limits->discard_granularity = dest_limits->discard_granularity; in set_discard_limits()
|
/kernel/linux/linux-5.10/fs/fat/ |
D | file.c | 144 q->limits.discard_granularity); in fat_ioctl_fitrim()
|
/kernel/linux/linux-5.10/drivers/mtd/ |
D | mtd_blkdevs.c | 450 new->rq->limits.discard_granularity = tr->blksize; in add_mtd_blktrans_dev()
|
/kernel/linux/linux-5.10/include/linux/ |
D | blkdev.h | 346 unsigned int discard_granularity; member 1532 granularity = lim->discard_granularity >> SECTOR_SHIFT; in queue_limit_discard_alignment()
|