Defined in 1 files as a function:
Referenced in 23 files:
- block/blk-lib.c, line 15
- drivers/block/drbd/drbd_nl.c, line 1512
- drivers/block/drbd/drbd_receiver.c, line 1337
- drivers/block/loop.c, line 768
- drivers/block/rnbd/rnbd-srv.c, line 568
- drivers/block/xen-blkback/xenbus.c, line 579
- drivers/nvme/target/io-cmd-bdev.c
- drivers/target/target_core_device.c, line 880
- fs/btrfs/ioctl.c, line 483
- fs/exfat/file.c, line 534
- fs/ext4/mballoc.c, line 7040
- fs/f2fs/f2fs.h
- fs/fat/file.c, line 145
- fs/gfs2/rgrp.c, line 1420
- fs/jfs/ioctl.c, line 129
- fs/nilfs2/ioctl.c, line 1044
- fs/ntfs/bitmap.c, line 25
- fs/ntfs/file.c, line 833
- fs/ntfs/lcnalloc.c, line 990
- fs/ntfs3/file.c, line 80
- fs/ntfs3/super.c
- fs/ocfs2/ioctl.c, line 946
- fs/xfs/xfs_discard.c
Smatch caller information:
drivers/block/drbd/drbd_nl.c sanitize_disk_conf() -> bdev_discard_granularity()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bdev | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &adm_ctx->resource->adm_mutex | ||
| HALF_LOCKED2 | &dev->lock | ||
| HALF_LOCKED2 | &device->resource->conf_update | ||
| HALF_LOCKED2 | &devlink->lock | ||
| HALF_LOCKED2 | &net->xfrm.xfrm_cfg_mutex | ||
| HALF_LOCKED2 | global &audit_cmd_mutex.lock | ||
| HALF_LOCKED2 | global &cb_lock | ||
| HALF_LOCKED2 | global &crypto_cfg_mutex | ||
| HALF_LOCKED2 | global &dpll_lock | ||
| HALF_LOCKED2 | global &hwsim_phys_lock | ||
| HALF_LOCKED2 | global &net_dm_mutex | ||
| HALF_LOCKED2 | global &rtnl_mutex | ||
| HALF_LOCKED2 | global &rx_queue_mutex | ||
| TYPE_LOCK | (struct drbd_resource)->adm_mutex |
block/blk-lib.c bio_discard_limit() -> bdev_discard_granularity()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | bdev | (-1),2136 |
| BUF_SIZE | 0 | bdev | (-1),2136 |
| DATA_SOURCE | 0 | bdev | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | bdev->bd_mapping->host->i_bytes | |
| UNITS | 0 | bdev | unit_byte |
| HALF_LOCKED2 | 0 | &bdev->bd_mapping->host->i_rwsem | |
| HALF_LOCKED2 | 0 | &bdev->bd_mapping->invalidate_lock |
fs/ntfs/lcnalloc.c __ntfs_cluster_free() -> bdev_discard_granularity()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | bdev | unit_byte |
| HALF_LOCKED2 | &ni->runlist.lock | ||
| HALF_LOCKED2 | &vol->lcnbmp_lock |
drivers/block/drbd/drbd_receiver.c drbd_issue_discard_or_zero_out() -> bdev_discard_granularity()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/block/xen-blkback/xenbus.c xen_blkbk_discard() -> bdev_discard_granularity()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bdev | 4096-ptr_max |
| BUF_SIZE | 0 | bdev | 2136 |
| DATA_SOURCE | 0 | bdev | r file_bdev |
| TASK_NOT_RUNNING | |||
| LOCK2 | global &xenwatch_mutex |
drivers/block/loop.c loop_get_discard_config() -> bdev_discard_granularity()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bdev | 4096-ptr_max |
| BUF_SIZE | 0 | bdev | 2136 |
| DATA_SOURCE | 0 | bdev | r I_BDEV |
| LOCK2 | &lo->lo_mutex | ||
| LOCK2 | &lo->lo_queue->limits_lock | ||
| TYPE_LOCK | (struct loop_device)->lo_mutex | ||
| TYPE_LOCK | (struct request_queue)->limits_lock |
fs/gfs2/rgrp.c gfs2_fitrim() -> bdev_discard_granularity()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bdev | 4096-ptr_max |
| CAPABLE | 0 | 21 | |
| UNITS | 0 | bdev | unit_byte |
fs/nilfs2/ioctl.c nilfs_ioctl_trim_fs() -> bdev_discard_granularity()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bdev | 4096-ptr_max |
| CAPABLE | 0 | 21 | |
| UNITS | 0 | bdev | unit_byte |
fs/fat/file.c fat_ioctl_fitrim() -> bdev_discard_granularity()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bdev | 4096-ptr_max |
| CAPABLE | 0 | 21 | |
| UNITS | 0 | bdev | unit_byte |
fs/ext4/mballoc.c ext4_trim_fs() -> bdev_discard_granularity()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bdev | 4096-ptr_max |
| CAPABLE | 0 | 21 | |
| UNITS | 0 | bdev | unit_byte |
fs/exfat/file.c exfat_ioctl_fitrim() -> bdev_discard_granularity()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bdev | 4096-ptr_max |
| CAPABLE | 0 | 21 | |
| UNITS | 0 | bdev | unit_byte |
fs/btrfs/ioctl.c btrfs_ioctl_fitrim() -> bdev_discard_granularity()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bdev | 4096-ptr_max |
| CAPABLE | 0 | 21 | |
| UNITS | 0 | bdev | unit_byte |
| LOCK2 | rcu_read |
fs/f2fs/file.c f2fs_hw_discard_granularity() -> bdev_discard_granularity()
| Type | Parameter | Key | Value |
|---|---|---|---|
| CAPABLE | 0 | 21 | |
| UNITS | 0 | bdev | unit_byte |
fs/f2fs/file.c f2fs_hw_discard_granularity() -> bdev_discard_granularity()
| Type | Parameter | Key | Value |
|---|---|---|---|
| CAPABLE | 0 | 21 |
fs/ntfs/file.c ntfs_ioctl_fitrim() -> bdev_discard_granularity()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bdev | 4096-ptr_max |
| CAPABLE | 0 | 21 | |
| UNITS | 0 | bdev | unit_byte |
drivers/block/rnbd/rnbd-srv.c rnbd_srv_fill_msg_open_rsp() -> bdev_discard_granularity()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bdev | 4096-ptr_max |
| BUF_SIZE | 0 | bdev | 2136 |
| DATA_SOURCE | 0 | bdev | r file_bdev |
| LOCK2 | &srv_sess->lock | ||
| TYPE_LOCK | (struct rnbd_srv_session)->lock |
drivers/target/target_core_device.c target_configure_unmap_from_bdev() -> bdev_discard_granularity()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bdev | 4096-ptr_max |
| DATA_SOURCE | 0 | bdev | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &buffer->mutex | ||
| HALF_LOCKED2 | &frag->frag_sem |
fs/xfs/xfs_discard.c xfs_ioc_trim() -> bdev_discard_granularity()
| Type | Parameter | Key | Value |
|---|---|---|---|
| UNITS | 0 | bdev | unit_byte |
fs/xfs/xfs_discard.c xfs_ioc_trim() -> bdev_discard_granularity()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bdev | 4096-ptr_max |
| CAPABLE | 0 | 21 | |
| UNITS | 0 | bdev | unit_byte |
fs/ntfs3/file.c ntfs_ioctl_fitrim() -> bdev_discard_granularity()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bdev | 4096-ptr_max |
| CAPABLE | 0 | 21 | |
| UNITS | 0 | bdev | unit_byte |
fs/ocfs2/ioctl.c ocfs2_ioctl() -> bdev_discard_granularity()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bdev | 4096-ptr_max |
| CAPABLE | 0 | 21 | |
| UNITS | 0 | bdev | unit_byte |
fs/ntfs/bitmap.c ntfs_trim_fs() -> bdev_discard_granularity()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bdev | 4096-ptr_max |
| CAPABLE | 0 | 21 | |
| UNITS | 0 | bdev | unit_byte |
drivers/nvme/target/io-cmd-bdev.c nvmet_bdev_set_limits() -> bdev_discard_granularity()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bdev | 4096-ptr_max |
| DATA_SOURCE | 0 | bdev | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &pool->lock |
drivers/nvme/target/io-cmd-bdev.c nvmet_bdev_set_nvm_limits() -> bdev_discard_granularity()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bdev | 1-u64max |
| DATA_SOURCE | 0 | bdev | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &pool->lock |
fs/jfs/ioctl.c jfs_ioctl() -> bdev_discard_granularity()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bdev | 4096-ptr_max |
| CAPABLE | 0 | 21 | |
| UNITS | 0 | bdev | unit_byte |