Home
last modified time | relevance | path

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

12

/linux-6.1.9/block/
Dblk-settings.c50 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()
Dblk-lib.c15 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()
Dblk-sysfs.c171 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()
Dblk-merge.c118 granularity = max(lim->discard_granularity >> 9, 1U); in bio_split_discard()
/linux-6.1.9/drivers/block/
Dvirtio_blk.c899 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()
Dxen-blkfront.c221 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()
Dublk_drv.c223 q->limits.discard_granularity = p->discard_granularity; in ublk_dev_param_discard_apply()
254 if (!p->discard_granularity) in ublk_validate_params()
Dnbd.c335 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/
Dublk_cmd.h209 __u32 discard_granularity; member
/linux-6.1.9/drivers/block/rnbd/
Drnbd-proto.h141 __le32 discard_granularity; member
Drnbd-clt.c1350 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()
Drnbd-srv.c551 rsp->discard_granularity = cpu_to_le32(bdev_discard_granularity(bdev)); in rnbd_srv_fill_msg_open_rsp()
/linux-6.1.9/drivers/mmc/core/
Dqueue.c187 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/
Ddrbd_worker.c594 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()
Ddrbd_nl.c1194 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/
Dsuper.c929 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/
Dsysfs.c791 F2FS_RW_ATTR(DCC_INFO, discard_cmd_control, discard_granularity, discard_granularity);
920 ATTR_LIST(discard_granularity),
Dsegment.h922 if (i + 1 < dcc->discard_granularity) in wake_up_discard_thread()
/linux-6.1.9/drivers/md/
Ddm-clone-target.c2052 limits->discard_granularity = clone->region_size << SECTOR_SHIFT; in set_discard_limits()
2064 limits->discard_granularity = dest_limits->discard_granularity; in set_discard_limits()
Ddm-cache-target.c3368 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()
Ddm-log-writes.c872 limits->discard_granularity = lc->sectorsize; in log_writes_io_hints()
/linux-6.1.9/Documentation/ABI/stable/
Dsysfs-block216 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/
Dblkdev.h302 unsigned int discard_granularity; member
1242 return bdev_get_queue(bdev)->limits.discard_granularity; in bdev_discard_granularity()
/linux-6.1.9/drivers/mtd/
Dmtd_blkdevs.c381 new->rq->limits.discard_granularity = tr->blksize; in add_mtd_blktrans_dev()
/linux-6.1.9/drivers/s390/block/
Ddasd_fba.c784 q->limits.discard_granularity = logical_block_size; in dasd_fba_setup_blk_queue()

12