Documented in 1 files:
Defined in 1 files as a function:
Referenced in 7 files:
- fs/erofs/data.c, line 435
- fs/erofs/fileio.c, line 180
- fs/erofs/zdata.c, line 1899
- fs/ext4/readpage.c
- fs/f2fs/data.c
- fs/iomap/buffered-io.c, line 748
- mm/readahead.c
Smatch caller information:
fs/erofs/zdata.c z_erofs_readahead() -> readahead_index()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rac | 4096-ptr_max |
| BUF_SIZE | 0 | rac->file | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | rac->ra | (-1),32 |
| DATA_SOURCE | 0 | rac | $0 |
| NOSPEC | 0 | rac->_index | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | rac->_index | 0-4503612512272380[c] |
| USER_DATA | 0 | rac->_nr_pages | 1-u32max[c][u] |
| USER_DATA | 0 | rac->mapping->host->i_bytes | 0-65023[c] |
| USER_DATA | 0 | rac->mapping->host->i_mode | 0-u16max |
| NO_OVERFLOW_SIMPLE | 0 | rac->mapping->host->i_bytes | |
| NO_OVERFLOW_SIMPLE | 0 | rac->mapping->host->i_size | |
| HALF_LOCKED2 | &mapping->invalidate_lock |
fs/erofs/fileio.c erofs_fileio_readahead() -> readahead_index()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rac | 4096-ptr_max |
| BUF_SIZE | 0 | rac->file | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | rac->ra | (-1),32 |
| DATA_SOURCE | 0 | rac | $0 |
| NOSPEC | 0 | rac->_index | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | rac->_index | 0-4503612512272380[c] |
| USER_DATA | 0 | rac->_nr_pages | 1-u32max[c][u] |
| USER_DATA | 0 | rac->mapping->host->i_bytes | 0-65023[c] |
| USER_DATA | 0 | rac->mapping->host->i_mode | 0-u16max |
| NO_OVERFLOW_SIMPLE | 0 | rac->mapping->host->i_bytes | |
| NO_OVERFLOW_SIMPLE | 0 | rac->mapping->host->i_size | |
| HALF_LOCKED2 | &mapping->invalidate_lock |
mm/readahead.c do_page_cache_ra() -> readahead_index()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rac | 4096-ptr_max |
| BUF_SIZE | 0 | rac->ra | (-1),32 |
| DATA_SOURCE | 0 | rac | $0 |
| NOSPEC | 0 | rac->_index | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | rac->_index | 0-4503603922337790 |
| USER_DATA | 0 | rac->_nr_pages | 0[c][u] |
| USER_DATA | 0 | rac->mapping->host->i_bytes | 0-65023[c] |
| USER_DATA | 0 | rac->mapping->host->i_mode | 0-u16max |
| NO_OVERFLOW_SIMPLE | 0 | rac->mapping->host->i_bytes | |
| NO_OVERFLOW_SIMPLE | 0 | rac->mapping->host->i_size |
mm/readahead.c page_cache_async_ra() -> readahead_index()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rac | 3820933788045598720,4304815224135790592,8579143667756417024,9084849848308125696 |
| DATA_SOURCE | 0 | rac | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | rac->_index | 0-4503599627370495 |
mm/readahead.c page_cache_ra_order() -> readahead_index()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rac | 4096-ptr_max |
| DATA_SOURCE | 0 | rac | $0 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | rac->_index | 0-4503599627370495 |
| NO_OVERFLOW_SIMPLE | 0 | rac->mapping->host->i_size |
mm/readahead.c page_cache_ra_order() -> readahead_index()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rac | 4096-ptr_max |
| CAPPED_DATA | 0 | rac->_index | 1 |
| DATA_SOURCE | 0 | rac | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | rac->_index | 0-4503599627370495[c] |
| NO_OVERFLOW_SIMPLE | 0 | rac->mapping->host->i_size | |
| LOCK2 | &mapping->invalidate_lock | ||
| TYPE_LOCK | (struct address_space)->invalidate_lock |
mm/readahead.c page_cache_ra_unbounded() -> readahead_index()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rac | 4096-ptr_max |
| BUF_SIZE | 0 | rac->file | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | rac->ra | (-1),32 |
| DATA_SOURCE | 0 | rac | $0 |
| NOSPEC | 0 | rac->_index | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | rac->_index | 0-4503603922337790[c] |
| USER_DATA | 0 | rac->_nr_pages | 0[c][u] |
| USER_DATA | 0 | rac->mapping->host->i_bytes | 0-65023[c] |
| USER_DATA | 0 | rac->mapping->host->i_mode | 0-u16max |
| NO_OVERFLOW_SIMPLE | 0 | rac->mapping->host->i_size | |
| HALF_LOCKED2 | &inode->i_rwsem | ||
| HALF_LOCKED2 | &mapping->invalidate_lock |
mm/readahead.c page_cache_ra_unbounded() -> readahead_index()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rac | 4096-ptr_max |
| BUF_SIZE | 0 | rac->file | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | rac->ra | (-1),32 |
| DATA_SOURCE | 0 | rac | $0 |
| NOSPEC | 0 | rac->_index | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | rac->_index | 0-4503603922337790[c] |
| USER_DATA | 0 | rac->_nr_pages | 0[c][u] |
| USER_DATA | 0 | rac->mapping->host->i_bytes | 0-65023[c] |
| USER_DATA | 0 | rac->mapping->host->i_mode | 0-u16max |
| NO_OVERFLOW_SIMPLE | 0 | rac->mapping->host->i_size | |
| HALF_LOCKED2 | &inode->i_rwsem | ||
| HALF_LOCKED2 | &mapping->invalidate_lock |
mm/readahead.c page_cache_ra_unbounded() -> readahead_index()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rac | 4096-ptr_max |
| BUF_SIZE | 0 | rac->file | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | rac->ra | (-1),32 |
| DATA_SOURCE | 0 | rac | $0 |
| NOSPEC | 0 | rac->_index | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | rac->_index | 0-4503603922337790[c] |
| USER_DATA | 0 | rac->_nr_pages | 0[c][u] |
| USER_DATA | 0 | rac->mapping->host->i_bytes | 0-65023[c] |
| USER_DATA | 0 | rac->mapping->host->i_mode | 0-u16max |
| NO_OVERFLOW_SIMPLE | 0 | rac->mapping->host->i_size | |
| HALF_LOCKED2 | &inode->i_rwsem | ||
| HALF_LOCKED2 | &mapping->invalidate_lock |
mm/readahead.c page_cache_sync_ra() -> readahead_index()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rac | 4096-ptr_max |
| DATA_SOURCE | 0 | rac | $0 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | rac->_index | 0-4503599627370495 |
| HALF_LOCKED2 | &caching_ctl->mutex | ||
| HALF_LOCKED2 | &fs_info->commit_root_sem | ||
| HALF_LOCKED2 | &inode->vfs_inode.i_rwsem | ||
| HALF_LOCKED2 | &log_ni->runlist.lock | ||
| HALF_LOCKED2 | &ndir->mrec_lock | ||
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | global &read_mutex |
fs/f2fs/data.c f2fs_mpage_readpages() -> readahead_index()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rac | 4096-ptr_max |
| BUF_SIZE | 0 | rac->file | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | rac->ra | (-1),32 |
| DATA_SOURCE | 0 | rac | $2 |
| NOSPEC | 0 | rac->_index | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | rac->_index | 0-u64max[c] |
| USER_DATA | 0 | rac->_nr_pages | 1-u32max[c][u] |
| NO_OVERFLOW_SIMPLE | 0 | rac->mapping->host->i_bytes | |
| NO_OVERFLOW_SIMPLE | 0 | rac->mapping->host->i_size | |
| HALF_LOCKED2 | &mapping->invalidate_lock |
fs/f2fs/data.c f2fs_readahead() -> readahead_index()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rac | 4096-ptr_max |
| BUF_SIZE | 0 | rac->file | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | rac->ra | (-1),32 |
| DATA_SOURCE | 0 | rac | $0 |
| NOSPEC | 0 | rac->_index | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | rac->_index | 0-4503612512272380[c] |
| USER_DATA | 0 | rac->_nr_pages | 1-u32max[c][u] |
| USER_DATA | 0 | rac->mapping->host->i_bytes | 0-65023[c] |
| USER_DATA | 0 | rac->mapping->host->i_mode | 0-u16max |
| NO_OVERFLOW_SIMPLE | 0 | rac->mapping->host->i_bytes | |
| NO_OVERFLOW_SIMPLE | 0 | rac->mapping->host->i_size | |
| HALF_LOCKED2 | &mapping->invalidate_lock |
fs/f2fs/data.c f2fs_readahead() -> readahead_index()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rac | 4096-ptr_max |
| BUF_SIZE | 0 | rac->file | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | rac->ra | (-1),32 |
| DATA_SOURCE | 0 | rac | $0 |
| NOSPEC | 0 | rac->_index | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | rac->_index | 0-4503612512272380[c] |
| USER_DATA | 0 | rac->_nr_pages | 1-u32max[c][u] |
| USER_DATA | 0 | rac->mapping->host->i_bytes | 0-65023[c] |
| USER_DATA | 0 | rac->mapping->host->i_mode | 0-u16max |
| NO_OVERFLOW_SIMPLE | 0 | rac->mapping->host->i_bytes | |
| NO_OVERFLOW_SIMPLE | 0 | rac->mapping->host->i_size | |
| HALF_LOCKED2 | &mapping->invalidate_lock |
fs/f2fs/data.c f2fs_readahead() -> readahead_index()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rac | 4096-ptr_max |
| BUF_SIZE | 0 | rac->file | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | rac->ra | (-1),32 |
| DATA_SOURCE | 0 | rac | $0 |
| NOSPEC | 0 | rac->_index | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | rac->_index | 0-4503612512272380[c] |
| USER_DATA | 0 | rac->_nr_pages | 1-u32max[c][u] |
| USER_DATA | 0 | rac->mapping->host->i_bytes | 0-65023[c] |
| USER_DATA | 0 | rac->mapping->host->i_mode | 0-u16max |
| NO_OVERFLOW_SIMPLE | 0 | rac->mapping->host->i_bytes | |
| NO_OVERFLOW_SIMPLE | 0 | rac->mapping->host->i_size | |
| HALF_LOCKED2 | &mapping->invalidate_lock |
fs/ext4/readpage.c ext4_readahead() -> readahead_index()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rac | 4096-ptr_max |
| BUF_SIZE | 0 | rac->file | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | rac->ra | (-1),32 |
| DATA_SOURCE | 0 | rac | $0 |
| NOSPEC | 0 | rac->_index | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | rac->_index | 0-4503612512272380[c] |
| USER_DATA | 0 | rac->_nr_pages | 1-u32max[c][u] |
| USER_DATA | 0 | rac->mapping->host->i_bytes | 0-65023[c] |
| USER_DATA | 0 | rac->mapping->host->i_mode | 0-u16max |
| NO_OVERFLOW_SIMPLE | 0 | rac->mapping->host->i_bytes | |
| NO_OVERFLOW_SIMPLE | 0 | rac->mapping->host->i_size | |
| HALF_LOCKED2 | &mapping->invalidate_lock |
fs/ext4/readpage.c ext4_readahead() -> readahead_index()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rac | 4096-ptr_max |
| PARAM_VALUE | 0 | rac->_index | 0-18446744073709551614 |
| BUF_SIZE | 0 | rac->file | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | rac->ra | (-1),32 |
| DATA_SOURCE | 0 | rac | $0 |
| NOSPEC | 0 | rac->_index | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | rac->_index | 0-4503612512272380[c] |
| USER_DATA | 0 | rac->_nr_pages | 1-u32max[c][u] |
| USER_DATA | 0 | rac->mapping->host->i_bytes | 0-65023[c] |
| USER_DATA | 0 | rac->mapping->host->i_mode | 0-u16max |
| NO_OVERFLOW_SIMPLE | 0 | rac->mapping->host->i_bytes | |
| NO_OVERFLOW_SIMPLE | 0 | rac->mapping->host->i_size | |
| HALF_LOCKED2 | &mapping->invalidate_lock |
fs/iomap/buffered-io.c iomap_readahead() -> readahead_index()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rac | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &mapping->invalidate_lock |
fs/erofs/data.c erofs_readahead() -> readahead_index()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rac | 4096-ptr_max |
| BUF_SIZE | 0 | rac->file | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | rac->ra | (-1),32 |
| DATA_SOURCE | 0 | rac | $0 |
| NOSPEC | 0 | rac->_index | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | rac->_index | 0-4503612512272380[c] |
| USER_DATA | 0 | rac->_nr_pages | 1-u32max[c][u] |
| USER_DATA | 0 | rac->mapping->host->i_bytes | 0-65023[c] |
| USER_DATA | 0 | rac->mapping->host->i_mode | 0-u16max |
| NO_OVERFLOW_SIMPLE | 0 | rac->mapping->host->i_bytes | |
| NO_OVERFLOW_SIMPLE | 0 | rac->mapping->host->i_size | |
| HALF_LOCKED2 | &mapping->invalidate_lock |