Defined in 1 files as a function:
Referenced in 8 files:
- fs/exfat/balloc.c
- fs/exfat/fatent.c, line 223
- fs/ext4/mballoc.c, line 3971
- fs/fat/fatent.c
- fs/gfs2/rgrp.c
- fs/hpfs/alloc.c, line 518
- fs/jfs/jfs_discard.c, line 37
- fs/ocfs2/alloc.c, line 7514
Smatch caller information:
fs/hpfs/alloc.c do_trim() -> sb_issue_discard()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sb | 4096-ptr_max |
| PARAM_VALUE | 0 | sb->s_bdev->bd_mapping->i_private_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | block | 0-4294967294 |
| PARAM_VALUE | 2 | nr_blocks | 1-u32max |
| PARAM_VALUE | 3 | gfp_mask | 3136 |
| PARAM_VALUE | 4 | flags | 0 |
| CAPPED_DATA | 1 | block | 1 |
| CAPPED_DATA | 2 | nr_blocks | 1 |
| DATA_SOURCE | 0 | sb | $0 |
| DATA_SOURCE | 1 | block | $1 [m] |
| CAPABLE | 0 | 21 | |
| NOSPEC | 1 | block | |
| USER_DATA | 1 | block | 0-s32max[c] |
| UNITS | 0 | sb | unit_byte |
| UNITS | 1 | block | unit_byte |
| UNITS | 2 | nr_blocks | unit_byte |
| LOCK2 | &sbi->hpfs_mutex |
fs/gfs2/rgrp.c gfs2_rgrp_send_discards() -> sb_issue_discard()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | nr_blocks | 1-u64max |
| PARAM_VALUE | 3 | gfp_mask | 3136 |
| PARAM_VALUE | 4 | flags | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | block | unit_byte |
| UNITS | 2 | nr_blocks | unit_byte |
| LOCK2 | &rgd->rd_mutex | ||
| HALF_LOCKED2 | &sdp->sd_log_flush_lock | ||
| TYPE_LOCK | (struct gfs2_rgrpd)->rd_mutex |
fs/gfs2/rgrp.c gfs2_rgrp_send_discards() -> sb_issue_discard()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 3 | gfp_mask | 3136 |
| PARAM_VALUE | 4 | flags | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | block | unit_byte |
| UNITS | 2 | nr_blocks | unit_byte |
| LOCK2 | &rgd->rd_mutex | ||
| HALF_LOCKED2 | &sdp->sd_log_flush_lock | ||
| TYPE_LOCK | (struct gfs2_rgrpd)->rd_mutex |
fs/fat/fatent.c fat_free_clusters() -> sb_issue_discard()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sb | 4096-ptr_max |
| PARAM_VALUE | 0 | sb->s_fs_info | 4096-ptr_max |
| PARAM_VALUE | 2 | nr_blocks | 0-s32max,18446744071562067968-u64max |
| PARAM_VALUE | 3 | gfp_mask | 3136 |
| PARAM_VALUE | 4 | flags | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | sb->s_flags | 0-u64max[c] |
| UNITS | 0 | sb | unit_byte |
| LOCK2 | &sbi->fat_lock | ||
| TYPE_LOCK | (struct msdos_sb_info)->fat_lock |
fs/fat/fatent.c fat_trim_clusters() -> sb_issue_discard()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sb | 4096-ptr_max |
| PARAM_VALUE | 0 | sb->s_bdev | 4096-ptr_max |
| PARAM_VALUE | 0 | sb->s_bdev->bd_mapping->i_private_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | sb->s_bdi | 4096-ptr_max |
| PARAM_VALUE | 0 | sb->s_fs_info | 4096-ptr_max |
| PARAM_VALUE | 0 | sb->s_fs_info->max_cluster | 0 |
| PARAM_VALUE | 2 | nr_blocks | 0-u32max |
| PARAM_VALUE | 3 | gfp_mask | 3136 |
| PARAM_VALUE | 4 | flags | 0 |
| DATA_SOURCE | 0 | sb | $0 |
| CAPABLE | 0 | 21 | |
| UNITS | 0 | sb | unit_byte |
| LOCK2 | &sbi->fat_lock | ||
| TYPE_LOCK | (struct msdos_sb_info)->fat_lock |
fs/ocfs2/alloc.c ocfs2_trim_extent() -> sb_issue_discard()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sb | 4096-ptr_max |
| PARAM_VALUE | 0 | sb->s_bdev | 4096-ptr_max |
| PARAM_VALUE | 0 | sb->s_fs_info | 4096-ptr_max |
| PARAM_VALUE | 3 | gfp_mask | 3136 |
| PARAM_VALUE | 4 | flags | 0 |
| DATA_SOURCE | 0 | sb | $0 |
| DATA_SOURCE | 2 | nr_blocks | r ocfs2_clusters_to_blocks |
| CAPABLE | 0 | 21 | |
| UNITS | 0 | sb | unit_byte |
| LOCK2 | &main_bm_inode->i_rwsem | ||
| LOCK2 | &osb->obs_trim_fs_mutex | ||
| TYPE_LOCK | (struct inode)->i_rwsem | ||
| TYPE_LOCK | (struct ocfs2_super)->obs_trim_fs_mutex |
fs/ext4/mballoc.c ext4_issue_discard() -> sb_issue_discard()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sb | 4096-ptr_max |
| PARAM_VALUE | 0 | sb->s_op->show_path | 0,4096-ptr_max |
| PARAM_VALUE | 2 | nr_blocks | 0-s32max,18446744071562067968-u64max |
| PARAM_VALUE | 3 | gfp_mask | 3136 |
| PARAM_VALUE | 4 | flags | 0 |
| DATA_SOURCE | 0 | sb | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | sb->s_flags | 0-u64max[c] |
| NO_OVERFLOW_SIMPLE | 0 | sb->s_blocksize | |
| NO_OVERFLOW_SIMPLE | 0 | sb->s_blocksize_bits | |
| UNITS | 0 | sb | unit_byte |
| UNITS | 2 | nr_blocks | unit_byte |
fs/exfat/balloc.c exfat_trim_fs() -> sb_issue_discard()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sb | 4096-ptr_max |
| PARAM_VALUE | 0 | sb->s_bdev | 4096-ptr_max |
| PARAM_VALUE | 0 | sb->s_fs_info | 4096-ptr_max |
| PARAM_VALUE | 0 | sb->s_fs_info->num_clusters | 3-4294967295 |
| PARAM_VALUE | 2 | nr_blocks | 0-u32max |
| PARAM_VALUE | 3 | gfp_mask | 3136 |
| PARAM_VALUE | 4 | flags | 0 |
| CAPPED_DATA | 0 | sb->s_fs_info->num_clusters | 1 |
| CAPABLE | 0 | 21 | |
| UNITS | 0 | sb | unit_byte |
| LOCK2 | &sbi->bitmap_lock | ||
| TYPE_LOCK | (struct exfat_sb_info)->bitmap_lock |
fs/exfat/balloc.c exfat_trim_fs() -> sb_issue_discard()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sb | 4096-ptr_max |
| PARAM_VALUE | 0 | sb->s_bdev | 4096-ptr_max |
| PARAM_VALUE | 0 | sb->s_fs_info | 4096-ptr_max |
| PARAM_VALUE | 0 | sb->s_fs_info->num_clusters | 3-4294967295 |
| PARAM_VALUE | 2 | nr_blocks | 0-u32max |
| PARAM_VALUE | 3 | gfp_mask | 3136 |
| PARAM_VALUE | 4 | flags | 0 |
| CAPPED_DATA | 0 | sb->s_fs_info->num_clusters | 1 |
| CAPABLE | 0 | 21 | |
| UNITS | 0 | sb | unit_byte |
| LOCK2 | &sbi->bitmap_lock | ||
| TYPE_LOCK | (struct exfat_sb_info)->bitmap_lock |
fs/exfat/fatent.c exfat_discard_cluster() -> sb_issue_discard()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sb | 4096-ptr_max |
| PARAM_VALUE | 2 | nr_blocks | 0-u32max |
| PARAM_VALUE | 3 | gfp_mask | 3136 |
| PARAM_VALUE | 4 | flags | 0 |
| DATA_SOURCE | 0 | sb | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | sb | unit_byte |
| HALF_LOCKED2 | &inode->i_rwsem | ||
| HALF_LOCKED2 | &sbi->bitmap_lock |
fs/jfs/jfs_discard.c jfs_issue_discard() -> sb_issue_discard()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sb | 4096-ptr_max |
| PARAM_VALUE | 3 | gfp_mask | 3136 |
| PARAM_VALUE | 4 | flags | 0 |
| DATA_SOURCE | 1 | block | $1 |
| DATA_SOURCE | 2 | nr_blocks | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | nr_blocks | 1-s32max[c] |
| UNITS | 0 | sb | unit_byte |
| HALF_LOCKED2 | &sb->s_umount |