Home
last modified time | relevance | path

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

12

/linux/block/
H A Dblk-settings.c41 lim->discard_granularity = SECTOR_SIZE; in blk_set_stacking_limits()
331 if (lim->discard_granularity < lim->physical_block_size) in blk_validate_limits()
332 lim->discard_granularity = lim->physical_block_size; in blk_validate_limits()
484 granularity = lim->discard_granularity >> SECTOR_SHIFT; in queue_limit_discard_alignment()
757 if (b->discard_granularity) { in blk_stack_limits()
764 t->discard_granularity = max(t->discard_granularity, in blk_stack_limits()
765 b->discard_granularity); in blk_stack_limits()
767 t->discard_granularity; in blk_stack_limits()
H A 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()
H A Dblk-sysfs.c112 QUEUE_SYSFS_LIMIT_SHOW(discard_granularity) in QUEUE_SYSFS_LIMIT_SHOW()
168 if (max_discard_bytes & (disk->queue->limits.discard_granularity - 1))
H A Dblk-merge.c147 granularity = max(lim->discard_granularity >> 9, 1U); in bio_split_discard()
/linux/drivers/block/
H A Dvirtio_blk.c1246 u32 discard_granularity = 0; in virtblk_read_limits() local
1316 discard_sector_alignment, &discard_granularity); in virtblk_read_limits()
1358 discard_granularity = min_not_zero(discard_granularity, v); in virtblk_read_limits()
1402 if (discard_granularity) in virtblk_read_limits()
1403 lim->discard_granularity = in virtblk_read_limits()
1404 discard_granularity << SECTOR_SHIFT; in virtblk_read_limits()
1406 lim->discard_granularity = lim->logical_block_size; in virtblk_read_limits()
H A Dxen-blkfront.c221 unsigned int discard_granularity; member
955 if (info->discard_granularity) in blkif_set_queue_limits()
956 lim->discard_granularity = info->discard_granularity; in blkif_set_queue_limits()
2152 info->discard_granularity = xenbus_read_unsigned(info->xbdev->otherend, in blkfront_setup_discard()
H A Dbrd.c372 .discard_granularity = PAGE_SIZE, in brd_alloc()
H A Dloop.c311 lim.discard_granularity = 0; in loop_clear_limits()
1010 lim.discard_granularity = granularity; in loop_reconfigure_limits()
1012 lim.discard_granularity = 0; in loop_reconfigure_limits()
H A Dublk_drv.c558 if (!p->discard_granularity) in ublk_validate_params()
2275 lim.discard_granularity = pd->discard_granularity; in ublk_ctrl_start_dev()
/linux/drivers/block/rnbd/
H A Drnbd-proto.h150 __le32 discard_granularity; member
H A Drnbd-clt.c1371 .discard_granularity = le32_to_cpu(rsp->discard_granularity), in rnbd_client_setup_device()
1619 le32_to_cpu(rsp->discard_granularity), in rnbd_clt_map_device()
H A Drnbd-srv.c557 rsp->discard_granularity = cpu_to_le32(bdev_discard_granularity(bdev)); in rnbd_srv_fill_msg_open_rsp()
/linux/drivers/mmc/core/
H A Dqueue.c194 lim->discard_granularity = SECTOR_SIZE; in mmc_queue_setup_discard()
196 lim->discard_granularity = card->pref_erase << 9; in mmc_queue_setup_discard()
/linux/include/uapi/linux/
H A Dublk_cmd.h378 __u32 discard_granularity; member
/linux/drivers/block/drbd/
H A Ddrbd_worker.c596 int discard_granularity = 0; in make_resync_request() local
618 discard_granularity = rcu_dereference(device->ldev->disk_conf)->rs_discard_granularity; in make_resync_request()
686 if (discard_granularity && size == discard_granularity) in make_resync_request()
736 size == discard_granularity ? P_RS_THIN_REQ : P_RS_DATA_REQUEST, in make_resync_request()
H A Ddrbd_nl.c1313 lim.discard_granularity = 512; in drbd_reconsider_queue_parameters()
1317 lim.discard_granularity = 0; in drbd_reconsider_queue_parameters()
1334 if ((lim.discard_granularity >> SECTOR_SHIFT) > in drbd_reconsider_queue_parameters()
1336 lim.discard_granularity = 0; in drbd_reconsider_queue_parameters()
1451 unsigned int discard_granularity = bdev_discard_granularity(bdev); in sanitize_disk_conf() local
1454 if (discard_granularity > disk_conf->rs_discard_granularity) in sanitize_disk_conf()
1455 disk_conf->rs_discard_granularity = discard_granularity; in sanitize_disk_conf()
1458 discard_granularity; in sanitize_disk_conf()
/linux/fs/ntfs3/
H A Dsuper.c1196 sbi->discard_granularity = bdev_discard_granularity(bdev); in ntfs_fill_super()
1198 ~(u64)(sbi->discard_granularity - 1); in ntfs_fill_super()
1669 start = (lbo + sbi->discard_granularity - 1) & in ntfs_discard()
H A Dntfs_fs.h213 u32 discard_granularity; member
/linux/include/linux/
H A Dblkdev.h382 unsigned int discard_granularity; member
1303 return bdev_limits(bdev)->discard_granularity; in bdev_discard_granularity()
/linux/drivers/md/
H A Ddm-cache-target.c3393 limits->discard_granularity = cache->discard_block_size << SECTOR_SHIFT; in set_discard_limits()
3402 limits->discard_granularity = origin_limits->discard_granularity; in set_discard_limits()
H A Ddm-zoned-target.c1003 limits->discard_granularity = DMZ_BLOCK_SIZE; in dmz_io_hints()
H A Ddm-thin.c4107 limits->discard_granularity = 0; in pool_io_hints()
4493 limits->discard_granularity = pool->sectors_per_block << SECTOR_SHIFT; in thin_io_hints()
/linux/fs/ext4/
H A Dmballoc.c6909 unsigned int discard_granularity = bdev_discard_granularity(sb->s_bdev); in ext4_trim_fs() local
6929 if (range->minlen < discard_granularity) { in ext4_trim_fs()
6931 discard_granularity >> sb->s_blocksize_bits); in ext4_trim_fs()
/linux/drivers/md/dm-vdo/
H A Ddm-vdo-target.c955 limits->discard_granularity = VDO_BLOCK_SIZE; in vdo_io_hints()
/linux/drivers/s390/block/
H A Ddasd.c339 lim.discard_granularity = block->bp_block; in dasd_state_basic_to_ready()

12