Defined in 1 files as a prototype:
Defined in 2 files as a function:
Referenced in 2 files:
Smatch caller information:
fs/ntfs/file.c ntfs_file_mmap_prepare() -> ntfs_extend_initialized_size()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | file | 4096-ptr_max |
| PARAM_VALUE | 1 | ni | (-9223372036854775807)-s64max |
| PARAM_VALUE | 2 | new_valid | (-9223372036854775807)-s64max |
| CAPPED_DATA | 1 | ni | 1 |
| CAPPED_DATA | 1 | ni | 1 |
| CAPPED_DATA | 2 | new_valid | 1 |
| CAPPED_DATA | 2 | new_valid | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | ni | (-2147483647)-0,4096-2147483648[c] |
| USER_DATA | 2 | new_valid | (-2147483647)-0,4096-2147483648[c] |
| UNITS | 1 | ni | unit_byte |
| UNITS | 2 | new_valid | unit_byte |
fs/ntfs/file.c ntfs_file_write_iter() -> ntfs_extend_initialized_size()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | file | 4096-ptr_max |
| PARAM_VALUE | 0 | file->i_rwsem.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | file->i_rwsem.first_waiter->list.next | 2624917664208203776 |
| PARAM_VALUE | 0 | file->i_rwsem.first_waiter->list.prev | 2624917664208203776 |
| PARAM_VALUE | 0 | file->i_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | file->i_rwsem.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 2 | new_valid | (-9223372036854775807)-s64max |
| CAPPED_DATA | 2 | new_valid | 1 |
| CAPPED_DATA | 2 | new_valid | 1 |
| PARAM_COMPARE | 1 | ni | < $2 |
| PARAM_COMPARE | 2 | new_valid | > $1 |
| PARAM_COMPARE | 2 | new_valid | > $1 |
| NOSPEC | 2 | new_valid | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | ni | s64min-(-2),0-s64max |
| USER_DATA | 2 | new_valid | (-9223372036854775807)-9223372036854775805[c] |
| UNITS | 1 | ni | unit_byte |
| UNITS | 2 | new_valid | unit_byte |
| LOCK2 | 0 | &file->i_rwsem | |
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct inode)->i_rwsem |
fs/ntfs3/file.c ntfs_file_mmap_prepare() -> ntfs_extend_initialized_size()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | file | 4096-ptr_max |
| PARAM_VALUE | 0 | file->f_inode->i_sb | 4096-ptr_max |
| PARAM_VALUE | 1 | ni | 4096-ptr_max |
| PARAM_VALUE | 1 | ni->file.run_lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 1 | ni->file.run_lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 1 | ni->i_valid | 0-18446744073709551614 |
| PARAM_VALUE | 1 | ni->ni_bad | 0 |
| PARAM_VALUE | 2 | new_valid | s64min-(-1),1-s64max |
| CAPPED_DATA | 1 | ni->i_valid | 1 |
| CAPPED_DATA | 2 | new_valid | 1 |
| DATA_SOURCE | 1 | ni | r ntfs_i |
| PARAM_COMPARE | 1 | ni->i_valid | < $2 |
| PARAM_COMPARE | 2 | new_valid | > $1->i_valid |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | new_valid | 4097-s32max[c] |
| UNITS | 2 | new_valid | unit_byte |
| LOCK2 | &inode->i_rwsem | ||
| TYPE_LOCK | (struct inode)->i_rwsem |
fs/ntfs3/file.c ntfs_file_write_iter() -> ntfs_extend_initialized_size()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | file | 4096-ptr_max |
| PARAM_VALUE | 0 | file->f_inode | 4096-ptr_max |
| PARAM_VALUE | 0 | file->f_inode->i_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 1 | ni | 4096-ptr_max |
| PARAM_VALUE | 1 | ni->i_valid | 0-18446744073709551614 |
| PARAM_VALUE | 2 | new_valid | s64min-(-1),1-s64max |
| CAPPED_DATA | 1 | ni->i_valid | 1 |
| DATA_SOURCE | 1 | ni | r ntfs_i |
| PARAM_COMPARE | 1 | ni->i_valid | < $2 |
| PARAM_COMPARE | 2 | new_valid | > $1->i_valid |
| BIT_INFO | 1 | ni->ni_flags | 0x0,0xfffffffffffffff0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | new_valid | s64min-(-2),1-s64max |
| UNITS | 2 | new_valid | unit_byte |
| LOCK2 | &inode->i_rwsem | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct inode)->i_rwsem |