Searched refs:bdev_discard_granularity (Results 1 – 21 of 21) sorted by relevance
15 unsigned int discard_granularity = bdev_discard_granularity(bdev); in bio_discard_limit()50 if (WARN_ON_ONCE(!bdev_discard_granularity(bdev))) { in __blkdev_issue_discard()
129 bdev_discard_granularity(sb->s_bdev)); in jfs_ioctl()
370 bdev_discard_granularity(mp->m_ddev_targp->bt_bdev); in xfs_ioc_trim()
334 bdev_discard_granularity(inode->i_sb->s_bdev)); in exfat_ioctl_fitrim()
43 id->npdg = to0based(bdev_discard_granularity(bdev) / in nvmet_bdev_set_limits()
144 bdev_discard_granularity(sb->s_bdev)); in fat_ioctl_fitrim()
549 rsp->discard_granularity = cpu_to_le32(bdev_discard_granularity(bdev)); in rnbd_srv_fill_msg_open_rsp()
1188 if (bdev_max_discard_sectors(bdev) && bdev_discard_granularity(bdev)) { in ntfs_fill_super()1189 sbi->discard_granularity = bdev_discard_granularity(bdev); in ntfs_fill_super()
39 range.minlen = max_t(u32, range.minlen, bdev_discard_granularity(dev)); in ntfs_ioctl_fitrim()
933 range.minlen = max_t(u64, bdev_discard_granularity(sb->s_bdev), in ocfs2_ioctl()
1068 bdev_discard_granularity(nilfs->ns_bdev)); in nilfs_ioctl_trim_fs()
814 attrib->unmap_granularity = bdev_discard_granularity(bdev) / block_size; in target_configure_unmap_from_queue()
580 bdev_discard_granularity(bdev)); in xen_blkbk_discard()
1209 static inline unsigned int bdev_discard_granularity(struct block_device *bdev) in bdev_discard_granularity() function
773 granularity = bdev_discard_granularity(I_BDEV(inode)) ?: in loop_config_discard()
1420 minlen = max_t(u64, minlen, bdev_discard_granularity(bdev)) >> bs_shift; in gfs2_fitrim()
516 minlen = min_t(u64, bdev_discard_granularity(device->bdev), in btrfs_ioctl_fitrim()
1459 unsigned int discard_granularity = bdev_discard_granularity(bdev); in sanitize_disk_conf()
1525 granularity = max(bdev_discard_granularity(bdev) >> 9, 1U); in drbd_issue_discard_or_zero_out()
2313 bdev_discard_granularity(sb->s_bdev)); in f2fs_ioc_fitrim()
7051 unsigned int discard_granularity = bdev_discard_granularity(sb->s_bdev); in ext4_trim_fs()