Documented in 1 files:
Defined in 1 files as a function:
Referenced in 8 files:
- fs/buffer.c, line 2045
- fs/ext4/inode.c, line 1234
- fs/iomap/buffered-io.c, line 923
- fs/libfs.c, line 959
- fs/netfs/buffered_read.c, line 593
- fs/nfs/file.c, line 456
- fs/ntfs/iomap.c
- mm/shmem.c, line 3291
Smatch caller information:
fs/ext4/inode.c ext4_block_write_begin() -> folio_zero_segments()
| 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_cop->inode_info_offs | 1632,1720,1808,2632,2648 |
| PARAM_VALUE | 1 | start1 | 1-u32max |
| PARAM_VALUE | 2 | xend1 | 1-u32max |
| PARAM_VALUE | 3 | start2 | 0-4294967294 |
| PARAM_VALUE | 4 | xend2 | 0-4294967294 |
| CAPPED_DATA | 1 | start1 | 1 |
| CAPPED_DATA | 2 | xend1 | 1 |
| CAPPED_DATA | 3 | start2 | 1 |
| CAPPED_DATA | 4 | xend2 | 1 |
| DATA_SOURCE | 0 | folio | $1 |
| PARAM_COMPARE | 1 | start1 | < $2 |
| PARAM_COMPARE | 1 | start1 | > $3 |
| PARAM_COMPARE | 1 | start1 | >= $4 |
| PARAM_COMPARE | 2 | xend1 | > $1 |
| PARAM_COMPARE | 2 | xend1 | > $3 |
| PARAM_COMPARE | 2 | xend1 | > $4 |
| PARAM_COMPARE | 3 | start2 | < $1 |
| PARAM_COMPARE | 3 | start2 | < $2 |
| PARAM_COMPARE | 4 | xend2 | < $2 |
| PARAM_COMPARE | 4 | xend2 | <= $1 |
| NOSPEC | 4 | xend2 | |
| HARD_MAX | 3 | start2 | 4294967294 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | folio->mapping->writeback_index | 0-524287[c] |
| USER_DATA | 4 | xend2 | 0-s32max[c] |
| UNITS | 0 | folio | unit_page |
| UNITS | 1 | start1 | unit_byte |
| UNITS | 2 | xend1 | unit_byte |
| UNITS | 3 | start2 | unit_byte |
| UNITS | 4 | xend2 | unit_byte |
| HALF_LOCKED2 | &mapping->invalidate_lock |
mm/shmem.c shmem_write_end() -> folio_zero_segments()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | folio | 4096-ptr_max |
| PARAM_VALUE | 1 | start1 | 0 |
| CAPPED_DATA | 2 | xend1 | 1 |
| CAPPED_DATA | 2 | xend1 | 1 |
| CAPPED_DATA | 3 | start2 | 1 |
| DATA_SOURCE | 0 | folio | $5 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 2 | xend1 | 0-u64max[c] |
| HALF_LOCKED2 | &inode->i_rwsem |
fs/nfs/file.c nfs_write_end() -> folio_zero_segments()
| 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 | 1 | start1 | 0 |
| CAPPED_DATA | 2 | xend1 | 1 |
| DATA_SOURCE | 0 | folio | $5 |
| DATA_SOURCE | 4 | xend2 | r folio_size |
| PARAM_COMPARE | 2 | xend1 | <= $3 |
| PARAM_COMPARE | 3 | start2 | >= $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 2 | xend1 | 0-u32max[c] |
| HALF_LOCKED2 | &inode->i_rwsem |
fs/ntfs/iomap.c ntfs_iomap_put_folio_non_resident() -> folio_zero_segments()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | folio | 4096-ptr_max |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_export_op->encode_fh | 0,2,1398972869330624512,1616549510479982592,2037984473558433792,2776440803454029824,3228746867770966016,3502492669594062848,3526768263295340544,3559173554394271744,5000850239487131648,5583386343686406144,5817357685191483392-s64max |
| PARAM_VALUE | 1 | start1 | 0-9223372036854775806 |
| PARAM_VALUE | 2 | xend1 | 0-9223372036854775807 |
| CAPPED_DATA | 1 | start1 | 1 |
| CAPPED_DATA | 2 | xend1 | 1 |
| DATA_SOURCE | 0 | folio | $3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | folio->mapping->writeback_index | 0-524287[c] |
| USER_DATA | 2 | xend1 | 0-9223372036854775807[c] |
| USER_DATA | 3 | start2 | 0-9223372036854775807[c] |
fs/ntfs/iomap.c ntfs_iomap_put_folio_non_resident() -> folio_zero_segments()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | folio | 4096-ptr_max |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_export_op->encode_fh | 0,2,1398972869330624512,1616549510479982592,2037984473558433792,2776440803454029824,3228746867770966016,3502492669594062848,3526768263295340544,3559173554394271744,5000850239487131648,5583386343686406144,5817357685191483392-s64max |
| CAPPED_DATA | 1 | start1 | 1 |
| CAPPED_DATA | 2 | xend1 | 1 |
| DATA_SOURCE | 0 | folio | $3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | folio->mapping->writeback_index | 0-524287[c] |
| USER_DATA | 2 | xend1 | 0-u64max[c] |
| USER_DATA | 3 | start2 | 0-9223372036854775807[c] |
fs/netfs/buffered_read.c netfs_skip_folio_read() -> folio_zero_segments()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | folio | 4096-ptr_max |
| PARAM_VALUE | 0 | folio->mapping | 4096-ptr_max |
| PARAM_VALUE | 1 | start1 | 0 |
| CAPPED_DATA | 2 | xend1 | 1 |
| CAPPED_DATA | 2 | xend1 | 1 |
| DATA_SOURCE | 0 | folio | $0 |
| DATA_SOURCE | 4 | xend2 | r folio_size |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | folio->mapping->writeback_index | 0-524287[c] |
| USER_DATA | 2 | xend1 | 0-u64max[c] |
| UNITS | 2 | xend1 | unit_byte |
| UNITS | 3 | start2 | unit_byte |
| HALF_LOCKED2 | &inode->i_rwsem |
fs/iomap/buffered-io.c __iomap_write_begin() -> folio_zero_segments()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | folio | 4096-ptr_max |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_cop->empty_dir | 0,86,661756434209751040,4392966320616476672,5234023279986843648,8614756098313990144 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_cop->get_context | 0,706,17350455714160640,4513809449498124288,5149251875611672576,7067778626864828416 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_cop->set_context | 0,67,317457138841939968,3250154607523569664,5979066299606671360,6756104566897242112 |
| CAPPED_DATA | 2 | xend1 | 1 |
| CAPPED_DATA | 2 | xend1 | 1 |
| DATA_SOURCE | 0 | folio | $3 |
| PARAM_COMPARE | 2 | xend1 | <= $3 |
| PARAM_COMPARE | 2 | xend1 | <= $3 |
| PARAM_COMPARE | 3 | start2 | >= $2 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | folio->mapping->writeback_index | 0-524287[c] |
| USER_DATA | 1 | start1 | 0-9223372041149743102[c] |
| USER_DATA | 2 | xend1 | 0-u64max[c] |
| UNITS | 1 | start1 | unit_byte |
| UNITS | 2 | xend1 | unit_byte |
| UNITS | 3 | start2 | unit_byte |
| UNITS | 4 | xend2 | unit_byte |
fs/libfs.c simple_write_begin() -> folio_zero_segments()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | folio | 4096-ptr_max |
| PARAM_VALUE | 1 | start1 | 0 |
| CAPPED_DATA | 2 | xend1 | 1 |
| CAPPED_DATA | 2 | xend1 | 1 |
| DATA_SOURCE | 0 | folio | r __filemap_get_folio |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 2 | xend1 | 0-u64max[c] |
| HALF_LOCKED2 | &inode->i_rwsem |