Documented in 1 files:
Defined in 1 files as a function:
Referenced in 8 files:
- fs/btrfs/extent_io.c
- fs/erofs/zdata.c, line 1819
- fs/exfat/inode.c, line 269
- fs/iomap/buffered-io.c, line 735
- fs/netfs/buffered_read.c
- fs/nfs/read.c, line 441
- fs/orangefs/inode.c
- fs/squashfs/file.c, line 581
Smatch caller information:
fs/erofs/zdata.c z_erofs_pcluster_readmore() -> readahead_length()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rac | 4096-ptr_max |
| PARAM_VALUE | 0 | rac->_nr_pages | 1-u32max |
| BUF_SIZE | 0 | rac->file | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | rac->ra | (-1),32 |
| DATA_SOURCE | 0 | rac | $1 |
| 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/orangefs/inode.c orangefs_readahead() -> readahead_length()
| 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 | |
| NOSPEC | 0 | rac->_nr_pages | |
| 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/orangefs/inode.c orangefs_readahead() -> readahead_length()
| 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 | |
| NOSPEC | 0 | rac->_nr_pages | |
| 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/exfat/inode.c exfat_readahead() -> readahead_length()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rac | 4096-ptr_max |
| PARAM_VALUE | 0 | rac->_nr_pages | 1-u32max |
| 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/btrfs/extent_io.c btrfs_do_readpage() -> readahead_length()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rac | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &mapping->invalidate_lock |
fs/btrfs/extent_io.c btrfs_readahead() -> readahead_length()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rac | 4096-ptr_max |
| PARAM_VALUE | 0 | rac->_nr_pages | 1-u32max |
| 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/btrfs/extent_io.c btrfs_readahead_expand() -> readahead_length()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rac | 4096-ptr_max |
| DATA_SOURCE | 0 | rac | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &mapping->invalidate_lock |
fs/squashfs/file.c squashfs_readahead() -> readahead_length()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rac | 4096-ptr_max |
| PARAM_VALUE | 0 | rac->_nr_pages | 1-u32max |
| 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/netfs/buffered_read.c netfs_readahead() -> readahead_length()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rac | 4096-ptr_max |
| PARAM_VALUE | 0 | rac->_nr_pages | 1-u32max |
| 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-u64max[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/netfs/buffered_read.c netfs_readahead() -> readahead_length()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rac | 4096-ptr_max |
| PARAM_VALUE | 0 | rac->_nr_pages | 1-u32max |
| 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-u64max[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/netfs/buffered_read.c netfs_rreq_expand() -> readahead_length()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rac | 4096-ptr_max |
| PARAM_VALUE | 0 | rac->_nr_pages | 1-u32max |
| BUF_SIZE | 0 | rac->file | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | rac->ra | (-1),32 |
| DATA_SOURCE | 0 | rac | $1 |
| 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/netfs/buffered_read.c netfs_rreq_expand() -> readahead_length()
| 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 | $1 |
| NOSPEC | 0 | rac->_index | |
| NOSPEC | 0 | rac->_nr_pages | |
| 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/netfs/buffered_read.c netfs_rreq_expand() -> readahead_length()
| 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 | $1 |
| NOSPEC | 0 | rac->_index | |
| NOSPEC | 0 | rac->_nr_pages | |
| 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/nfs/read.c nfs_readahead() -> readahead_length()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rac | 4096-ptr_max |
| PARAM_VALUE | 0 | rac->_nr_pages | 1-u32max |
| 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_length()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rac | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &mapping->invalidate_lock |