Documented in 1 files:

Defined in 1 files as a function:

Referenced in 7 files:

Smatch caller information:

fs/afs/inode.c afs_setattr() -> netfs_resize_file()

Type Parameter Key Value
PARAM_VALUE 0 ictx 4096-ptr_max
PARAM_VALUE 1 new_i_size 1-9223372036854775806
PARAM_VALUE 2 changed_on_server 0
CAPPED_DATA 1 new_i_size 1
NOSPEC 1 new_i_size
NOSPEC 1 new_i_size
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
USER_DATA 1 new_i_size 1-9223372036854775806[c]
UNITS 1 new_i_size unit_byte
LOCK2 &vnode->validate_lock
HALF_LOCKED2 &dentry->d_inode->i_rwsem
HALF_LOCKED2 &dentry->d_lockref.lock
HALF_LOCKED2 &inode->i_rwsem
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct afs_vnode)->validate_lock

fs/afs/inode.c afs_setattr_edit_file() -> netfs_resize_file()

Type Parameter Key Value
PARAM_VALUE 2 changed_on_server 1
NOSPEC 1 new_i_size
NOSPEC 1 new_i_size
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
USER_DATA 1 new_i_size 0-9223372036854775807,9223372036854775809-18446744073709547520
UNITS 1 new_i_size unit_byte
HALF_LOCKED2 &dvnode->rmdir_lock
HALF_LOCKED2 &target->i_rwsem

fs/9p/vfs_inode_dotl.c v9fs_vfs_setattr_dotl() -> netfs_resize_file()

Type Parameter Key Value
PARAM_VALUE 0 ictx 4096-ptr_max
PARAM_VALUE 2 changed_on_server 1
NOSPEC 1 new_i_size
NOSPEC 1 new_i_size
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
USER_DATA 1 new_i_size 0-9223372036854775807,9223372036854775809-18446744073709547520
UNITS 1 new_i_size unit_byte
HALF_LOCKED2 &dentry->d_inode->i_rwsem
HALF_LOCKED2 &dentry->d_lockref.lock

fs/smb/client/file.c cifs_do_truncate() -> netfs_resize_file()

Type Parameter Key Value
PARAM_VALUE 0 ictx 4096-ptr_max
PARAM_VALUE 1 new_i_size 0
PARAM_VALUE 2 changed_on_server 1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

fs/smb/client/file.c cifs_write_subrequest_terminated() -> netfs_resize_file()

Type Parameter Key Value
PARAM_VALUE 0 ictx 4096-ptr_max
PARAM_VALUE 0 ictx->_remote_i_size s64min-9223372036854775806
PARAM_VALUE 1 new_i_size 0-9223372036854775807,9223372036854775809-u64max
PARAM_VALUE 2 changed_on_server 1
CAPPED_DATA 0 ictx->_remote_i_size 1
CAPPED_DATA 1 new_i_size 1
DATA_SOURCE 0 ictx r netfs_inode
PARAM_COMPARE 0 ictx->_remote_i_size < $1
PARAM_COMPARE 1 new_i_size > $0->_remote_i_size
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 1 new_i_size unit_byte
LOCK2 &inode->i_lock
TYPE_LOCK (struct inode)->i_lock

fs/smb/client/smb2ops.c smb2_duplicate_extents() -> netfs_resize_file()

Type Parameter Key Value
PARAM_VALUE 0 ictx 4096-ptr_max
PARAM_VALUE 1 new_i_size 1-u64max
PARAM_VALUE 2 changed_on_server 1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

fs/smb/client/smb2ops.c smb3_collapse_range() -> netfs_resize_file()

Type Parameter Key Value
PARAM_VALUE 0 ictx 4096-ptr_max
PARAM_VALUE 2 changed_on_server 1
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &inode->i_lock
LOCK2 &inode->i_mapping->invalidate_lock
LOCK2 &inode->i_rwsem
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct address_space)->invalidate_lock
TYPE_LOCK (struct inode)->i_lock
TYPE_LOCK (struct inode)->i_rwsem

fs/smb/client/smb2ops.c smb3_insert_range() -> netfs_resize_file()

Type Parameter Key Value
PARAM_VALUE 0 ictx 4096-ptr_max
PARAM_VALUE 2 changed_on_server 1
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &inode->i_lock
LOCK2 &inode->i_mapping->invalidate_lock
LOCK2 &inode->i_rwsem
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct address_space)->invalidate_lock
TYPE_LOCK (struct inode)->i_lock
TYPE_LOCK (struct inode)->i_rwsem

fs/smb/client/smb2ops.c smb3_simple_falloc() -> netfs_resize_file()

Type Parameter Key Value
PARAM_VALUE 0 ictx 4096-ptr_max
PARAM_VALUE 1 new_i_size 0-9223372036854775807
PARAM_VALUE 2 changed_on_server 1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 1 new_i_size unit_byte
LOCK2 &inode->i_rwsem
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct inode)->i_rwsem

fs/smb/client/smb2ops.c smb3_simple_falloc() -> netfs_resize_file()

Type Parameter Key Value
PARAM_VALUE 0 ictx 4096-ptr_max
PARAM_VALUE 1 new_i_size 0-9223372036854775807
PARAM_VALUE 2 changed_on_server 1
CAPPED_DATA 1 new_i_size 1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &inode->i_rwsem
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct inode)->i_rwsem

fs/smb/client/smb2ops.c smb3_zero_range() -> netfs_resize_file()

Type Parameter Key Value
PARAM_VALUE 0 ictx 4096-ptr_max
PARAM_VALUE 1 new_i_size 1-u64max
PARAM_VALUE 2 changed_on_server 1
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
USER_DATA 1 new_i_size 1-18446744073709551614[c]
LOCK2 &inode->i_lock
LOCK2 &inode->i_mapping->invalidate_lock
LOCK2 &inode->i_rwsem
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct address_space)->invalidate_lock
TYPE_LOCK (struct inode)->i_lock
TYPE_LOCK (struct inode)->i_rwsem

fs/9p/vfs_inode.c v9fs_vfs_setattr() -> netfs_resize_file()

Type Parameter Key Value
PARAM_VALUE 0 ictx 4096-ptr_max
PARAM_VALUE 2 changed_on_server 1
NOSPEC 1 new_i_size
NOSPEC 1 new_i_size
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
USER_DATA 1 new_i_size 0-9223372036854775807,9223372036854775809-18446744073709547520
UNITS 1 new_i_size unit_byte
HALF_LOCKED2 &dentry->d_inode->i_rwsem
HALF_LOCKED2 &dentry->d_lockref.lock
HALF_LOCKED2 &inode->i_rwsem
HALF_LOCKED2 &pool->lock

fs/smb/client/inode.c cifs_file_set_size() -> netfs_resize_file()

Type Parameter Key Value
PARAM_VALUE 0 ictx 4096-ptr_max
PARAM_VALUE 2 changed_on_server 1
DATA_SOURCE 1 new_i_size $4
NOSPEC 1 new_i_size
NOSPEC 1 new_i_size
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
USER_DATA 1 new_i_size 0-9223372036854775807,9223372036854775809-18446744073709547520
UNITS 1 new_i_size unit_byte
HALF_LOCKED2 &dentry->d_inode->i_rwsem
HALF_LOCKED2 &dentry->d_lockref.lock
HALF_LOCKED2 &inode->i_rwsem

fs/smb/client/inode.c cifs_setattr_nounix() -> netfs_resize_file()

Type Parameter Key Value
PARAM_VALUE 0 ictx 4096-ptr_max
PARAM_VALUE 2 changed_on_server 1
NOSPEC 1 new_i_size
NOSPEC 1 new_i_size
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
USER_DATA 1 new_i_size 0-9223372036854775807,9223372036854775809-18446744073709547520
UNITS 1 new_i_size unit_byte
HALF_LOCKED2 &direntry->d_inode->i_rwsem
HALF_LOCKED2 &direntry->d_lockref.lock
HALF_LOCKED2 &inode->i_rwsem
HALF_LOCKED2 &pool->lock

fs/smb/client/inode.c cifs_setattr_unix() -> netfs_resize_file()

Type Parameter Key Value
PARAM_VALUE 0 ictx 4096-ptr_max
PARAM_VALUE 2 changed_on_server 1
NOSPEC 1 new_i_size
NOSPEC 1 new_i_size
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
USER_DATA 1 new_i_size 0-9223372036854775807,9223372036854775809-18446744073709547520
UNITS 1 new_i_size unit_byte
HALF_LOCKED2 &direntry->d_inode->i_rwsem
HALF_LOCKED2 &direntry->d_lockref.lock
HALF_LOCKED2 &inode->i_rwsem
HALF_LOCKED2 &pool->lock

fs/smb/client/cifsfs.c cifs_file_copychunk_range() -> netfs_resize_file()

Type Parameter Key Value
PARAM_VALUE 0 ictx 4096-ptr_max
PARAM_VALUE 1 new_i_size 0-9223372036854775807,9223372036854775809-u64max
PARAM_VALUE 2 changed_on_server 1
RX_PATH
NOCHECK_CALL

fs/smb/client/cifsfs.c cifs_precopy_set_eof() -> netfs_resize_file()

Type Parameter Key Value
PARAM_VALUE 0 ictx 4096-ptr_max
PARAM_VALUE 1 new_i_size 1-u64max
PARAM_VALUE 2 changed_on_server 1
DATA_SOURCE 1 new_i_size $4
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL