Home
last modified time | relevance | path

Searched refs:discard_granularity (Results 1 – 25 of 60) sorted by relevance

123

/kernel/linux/linux-5.10/block/
Dblk-settings.c54 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()
Dblk-lib.c51 if (WARN_ON_ONCE(!q->limits.discard_granularity)) { in __blkdev_issue_discard()
75 q->limits.discard_granularity >> SECTOR_SHIFT); in __blkdev_issue_discard()
Dblk-sysfs.c166 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()
Dblk.h285 return round_down(UINT_MAX, q->limits.discard_granularity) >> in bio_aligned_discard_max_sectors()
/kernel/linux/linux-5.10/drivers/block/rnbd/
Drnbd-srv-dev.h75 return bdev_get_queue(dev->bdev)->limits.discard_granularity; in rnbd_dev_get_discard_granularity()
Drnbd-clt.h118 u32 discard_granularity; member
Drnbd-proto.h135 __le32 discard_granularity; member
Drnbd-clt.c87 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()
Drnbd-srv.c555 rsp->discard_granularity = in rnbd_srv_fill_msg_open_rsp()
/kernel/linux/linux-5.10/fs/jfs/
Dioctl.c142 q->limits.discard_granularity); in jfs_ioctl()
/kernel/linux/linux-5.10/Documentation/ABI/testing/
Dsysfs-block193 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/
Dxfs_discard.c156 unsigned int granularity = q->limits.discard_granularity; in xfs_ioc_trim()
/kernel/linux/linux-5.10/drivers/mmc/core/
Dqueue.c190 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/
Ddev.c269 card->queue->limits.discard_granularity = RSXX_HW_BLK_SIZE; in rsxx_setup_dev()
/kernel/linux/linux-5.10/drivers/block/drbd/
Ddrbd_worker.c599 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/
Dsysfs.c553 F2FS_RW_ATTR(DCC_INFO, discard_cmd_control, discard_granularity, discard_granularity);
663 ATTR_LIST(discard_granularity),
/kernel/linux/linux-5.10/drivers/block/
Dvirtio_blk.c871 q->limits.discard_granularity = v << SECTOR_SHIFT; in virtblk_probe()
873 q->limits.discard_granularity = blk_size; in virtblk_probe()
Dxen-blkfront.c219 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()
Dloop.c884 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()
Dnbd.c311 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/
Dio-cmd-bdev.c43 id->npdg = to0based(ql->discard_granularity / ql->logical_block_size); in nvmet_bdev_set_limits()
/kernel/linux/linux-5.10/drivers/md/
Ddm-clone-target.c2068 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/
Dfile.c144 q->limits.discard_granularity); in fat_ioctl_fitrim()
/kernel/linux/linux-5.10/drivers/mtd/
Dmtd_blkdevs.c450 new->rq->limits.discard_granularity = tr->blksize; in add_mtd_blktrans_dev()
/kernel/linux/linux-5.10/include/linux/
Dblkdev.h346 unsigned int discard_granularity; member
1532 granularity = lim->discard_granularity >> SECTOR_SHIFT; in queue_limit_discard_alignment()

123