Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 11 files:
- fs/buffer.c, line 2558
- fs/ext4/inode.c
- fs/f2fs/segment.c, line 4248
- fs/gfs2/file.c, line 546
- fs/iomap/buffered-io.c
- fs/ocfs2/aops.c, line 1080
- fs/orangefs/inode.c, line 690
- fs/ubifs/file.c, line 1569
- fs/udf/file.c, line 76
- mm/filemap.c
- mm/page-writeback.c, line 3105
Smatch caller information:
fs/orangefs/inode.c orangefs_page_mkwrite() -> folio_wait_stable()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | folio | 4096-ptr_max |
| PARAM_VALUE | 0 | folio->mapping->i_mmap_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | folio->mapping->i_mmap_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | folio->private | 4096-ptr_max |
| CAPPED_DATA | 0 | folio->mapping | 1 |
| DATA_SOURCE | 0 | folio | r _compound_head |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | folio | unit_page |
fs/f2fs/segment.c f2fs_folio_wait_writeback() -> folio_wait_stable()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | folio | 4096-ptr_max |
| PARAM_VALUE | 0 | folio->index | 0-8589934589 |
| PARAM_VALUE | 0 | folio->mapping | 4096-ptr_max |
| PARAM_VALUE | 0 | folio->mapping->host | 4096-ptr_max |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb | 4096-ptr_max |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_cop->empty_dir | 0,661756434209751040,4392966320616476672,5234023279986843648,8614756098313990144 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_cop->get_context | 0,17350455714160640,4513809449498124288,5149251875611672576,7067778626864828416 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_cop->inode_info_offs | 1632,1720,2632,2648 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_cop->set_context | 0,317457138841939968,3250154607523569664,5979066299606671360,6756104566897242112 |
| PARAM_VALUE | 0 | folio->mapping->i_mmap_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | folio->mapping->i_mmap_rwsem.first_waiter->type | 0-1 |
| CAPPED_DATA | 0 | folio | 1 |
| CAPPED_DATA | 0 | folio->index | 1 |
| CAPPED_DATA | 0 | folio->mapping | 1 |
| DATA_SOURCE | 0 | folio | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | folio | unit_page |
| LOCK2 | &inode->i_mapping->invalidate_lock | ||
| TYPE_LOCK | (struct address_space)->invalidate_lock |
fs/ext4/inode.c ext4_block_page_mkwrite() -> folio_wait_stable()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | folio | 4096-ptr_max |
| PARAM_VALUE | 0 | folio->mapping | 4096-ptr_max |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_cop->inode_info_offs | 1632,1640,1720,1808,1816,2632,2640,2648,2704,2712 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_add_error_count | s32min-s32max |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_addr_per_block_bits | s32min-s32max |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_awu_max | 0-4294967295 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_awu_min | 0-4294967295 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_bdev_wb_err | 0-4294967295 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_bdev_wb_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_blockfile_groups | 0-4294967295 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_cluster_bits | 0-4294967295 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_cluster_ratio | 0-4294967295 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_csum_seed | 0-4294967295 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_def_hash_version | s32min-s32max |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_def_mount_opt | 0-4294967295 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_def_mount_opt2 | 0-4294967295 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_desc_per_block_bits | s32min-s32max |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_error_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_extent_max_zeroout_kb | 0-4294967295 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_fc_bytes | 0-4294967295 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_fc_debug_max_replay | s32min-s32max |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_fc_ineligible_tid | 0-4294967295 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_first_error_code | s32min-s32max |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_first_error_ino | 0-4294967295 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_first_error_line | 0-4294967295 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_first_ino | s32min-s32max |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_flex_groups_allocated | 0-4294967295 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_freeclusters_counter->lock.owner | (-4611686018427387904)-4611686018427387903 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_freeclusters_counter.lock.owner | (-1) |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_freeclusters_counter.lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_freeinodes_counter->lock.owner | (-4611686018427387904)-4611686018427387903 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_freeinodes_counter.lock.owner | (-1) |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_freeinodes_counter.lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_group_info_size | 0-4294967295 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_groups_count | 0-4294967295 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_hash_unsigned | s32min-s32max |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_inode_goal | 0-4294967295 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_inode_readahead_blks | 0-4294967295 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_inode_size | s32min-s32max |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_jquota_fmt | s32min-s32max |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_last_error_code | s32min-s32max |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_last_error_ino | 0-4294967295 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_last_error_line | 0-4294967295 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_li_wait_mult | 0-4294967295 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_log_groups_per_flex | 0-4294967295 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_max_batch_time | 0-4294967295 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_max_dir_size_kb | 0-4294967295 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_max_folio_order | 0-u16max |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_mb_best_avail_max_trim_order | 0-4294967295 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_mb_group_prealloc | 0-4294967295 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_mb_max_linear_groups | 0-4294967295 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_mb_max_to_scan | 0-4294967295 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_mb_min_to_scan | 0-4294967295 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_mb_nr_global_goals | 0-4294967295 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_mb_order2_reqs | 0-4294967295 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_mb_prefetch | 0-4294967295 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_mb_prefetch_limit | 0-4294967295 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_mb_stats | 0-4294967295 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_mb_stream_request | 0-4294967295 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_min_batch_time | 0-4294967295 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_min_folio_order | 0-u16max |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_mount_opt | 0-4294967295 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_mount_opt2 | 0-4294967295 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_mount_state | 0-u16max |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_pad | 0-u16max |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_sb_update_kb | 0-4294967295 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_sb_update_sec | 0-4294967295 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_want_extra_isize | 0-4294967295 |
| PARAM_VALUE | 0 | *folio->mapping->host->i_sb->s_fs_info->s_es->s_first_error_func | 0-255 |
| PARAM_VALUE | 0 | *folio->mapping->host->i_sb->s_fs_info->s_es->s_last_error_func | 0-255 |
| PARAM_VALUE | 0 | *folio->mapping->host->i_sb->s_fs_info->s_first_error_func | 0-255 |
| PARAM_VALUE | 0 | *folio->mapping->host->i_sb->s_fs_info->s_last_error_func | 0-255 |
| CAPPED_DATA | 0 | folio->mapping | 1 |
| DATA_SOURCE | 0 | folio | $1 |
| NOCHECK_CALL |
fs/ext4/inode.c ext4_page_mkwrite() -> folio_wait_stable()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | folio | 4096-ptr_max |
| PARAM_VALUE | 0 | folio->mapping | 4096-ptr_max |
| CAPPED_DATA | 0 | folio->mapping | 1 |
| DATA_SOURCE | 0 | folio | r _compound_head |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | folio | unit_page |
| LOCK2 | &mapping->invalidate_lock | ||
| TYPE_LOCK | (struct address_space)->invalidate_lock |
fs/ext4/inode.c ext4_write_begin() -> folio_wait_stable()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | folio | 4096-ptr_max |
| PARAM_VALUE | 0 | folio->mapping | 4096-ptr_max |
| CAPPED_DATA | 0 | folio->mapping | 1 |
| DATA_SOURCE | 0 | folio | r write_begin_get_folio |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | folio->mapping->writeback_index | 0-524287[c] |
| HALF_LOCKED2 | &inode->i_rwsem |
mm/filemap.c __filemap_get_folio_mpol() -> folio_wait_stable()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | folio | 1-1025,1027-1029,1031-u64max |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_cop->empty_dir | 0,661756434209751040,4392966320616476672,5234023279986843648,8614756098313990144 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_cop->get_context | 0,17350455714160640,4513809449498124288,5149251875611672576,7067778626864828416 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_cop->set_context | 0,317457138841939968,3250154607523569664,5979066299606671360,6756104566897242112 |
| DATA_SOURCE | 0 | folio | r filemap_get_entry |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | folio->mapping->writeback_index | 0-524287[c] |
| HALF_LOCKED2 | &c->alloc_sem | ||
| HALF_LOCKED2 | &ctx->ring_lock | ||
| HALF_LOCKED2 | &fc->killsb | ||
| HALF_LOCKED2 | &fs_info->fs_devices->device_list_mutex | ||
| HALF_LOCKED2 | &fs_info->tree_log_mutex | ||
| HALF_LOCKED2 | &inode->i_rwsem | ||
| HALF_LOCKED2 | &inode->vfs_inode.i_rwsem | ||
| HALF_LOCKED2 | &ip->i_inode.i_rwsem | ||
| HALF_LOCKED2 | &ip->i_rw_mutex | ||
| HALF_LOCKED2 | &mapping->invalidate_lock | ||
| HALF_LOCKED2 | &mdsc->snap_rwsem | ||
| HALF_LOCKED2 | &req->r_fill_mutex | ||
| HALF_LOCKED2 | &sbi->gc_lock.internal_rwsem | ||
| HALF_LOCKED2 | &sdp->sd_log_flush_lock | ||
| HALF_LOCKED2 | &session->s_mutex | ||
| HALF_LOCKED2 | &split_debug_mutex |
mm/filemap.c filemap_page_mkwrite() -> folio_wait_stable()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | folio | 4096-ptr_max |
| PARAM_VALUE | 0 | folio->mapping | 4096-ptr_max |
| CAPPED_DATA | 0 | folio->mapping | 1 |
| DATA_SOURCE | 0 | folio | r _compound_head |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | folio | unit_page |
fs/udf/file.c udf_page_mkwrite() -> folio_wait_stable()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | folio | 4096-ptr_max |
| PARAM_VALUE | 0 | folio->mapping | 4096-ptr_max |
| CAPPED_DATA | 0 | folio->mapping | 1 |
| DATA_SOURCE | 0 | folio | r _compound_head |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | folio | unit_page |
| LOCK2 | &mapping->invalidate_lock | ||
| TYPE_LOCK | (struct address_space)->invalidate_lock |
fs/iomap/buffered-io.c __iomap_get_folio() -> folio_wait_stable()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | folio | 4096-ptr_max |
| PARAM_VALUE | 0 | folio->mapping | 4096-ptr_max |
| CAPPED_DATA | 0 | folio->mapping | 1 |
| DATA_SOURCE | 0 | folio | r folio_batch_next |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
fs/iomap/buffered-io.c iomap_page_mkwrite() -> folio_wait_stable()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | folio | 4096-ptr_max |
| PARAM_VALUE | 0 | folio->mapping | 1-u64max |
| DATA_SOURCE | 0 | folio | r _compound_head |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | folio | unit_page |
| HALF_LOCKED2 | &inode->i_mapping->invalidate_lock | ||
| HALF_LOCKED2 | &inode->i_rwsem |
fs/ocfs2/aops.c ocfs2_grab_folios_for_write() -> folio_wait_stable()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | folio | 1-1025,1027-1029,1031-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &oi->ip_alloc_sem |
fs/buffer.c block_page_mkwrite() -> folio_wait_stable()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | folio | 4096-ptr_max |
| CAPPED_DATA | 0 | folio->mapping | 1 |
| DATA_SOURCE | 0 | folio | r _compound_head |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | folio | unit_page |
| HALF_LOCKED2 | &mapping->invalidate_lock |
fs/ubifs/file.c ubifs_vm_page_mkwrite() -> folio_wait_stable()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | folio | 4096-ptr_max |
| PARAM_VALUE | 0 | folio->private | 1-u64max |
| CAPPED_DATA | 0 | folio->mapping | 1 |
| DATA_SOURCE | 0 | folio | r _compound_head |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | folio | unit_page |
fs/gfs2/file.c gfs2_page_mkwrite() -> folio_wait_stable()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | folio | 4096-ptr_max |
| PARAM_VALUE | 0 | folio->mapping | 4096-ptr_max |
| PARAM_VALUE | 0 | folio->mapping->host | 4096-ptr_max |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb | 4096-ptr_max |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->sd_log_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->sd_log_num_revoke | 0-4294967295 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->sd_log_revokes_available.counter | s32min-s32max |
| CAPPED_DATA | 0 | folio->mapping | 1 |
| DATA_SOURCE | 0 | folio | r _compound_head |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | folio | unit_page |