Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 17 files:
- fs/ceph/crypto.c, line 65
- fs/ceph/inode.c, line 1127
- fs/efivarfs/inode.c, line 167
- fs/ext2/super.c
- fs/ext4/inode.c, line 5171
- fs/ext4/super.c
- fs/f2fs/inode.c, line 67
- fs/hfsplus/inode.c, line 823
- fs/inode.c, line 2821
- fs/jfs/jfs_inode.c, line 31
- fs/jfs/super.c
- fs/nilfs2/inode.c, line 385
- fs/ntfs3/file.c, line 156
- fs/overlayfs/inode.c, line 691
- fs/overlayfs/overlayfs.h, line 886
- fs/overlayfs/util.c
- mm/shmem.c, line 3008
Smatch caller information:
fs/jfs/jfs_inode.c jfs_set_inode_flags() -> inode_set_flags()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | inode | 4096-ptr_max |
| PARAM_VALUE | 1 | flags | 0-15,64-79 |
| PARAM_VALUE | 2 | mask | 79 |
| BUF_SIZE | 0 | inode | (-1)-s32max |
| BUF_SIZE | 0 | inode | (-1)-s32max |
| BUF_SIZE | 0 | inode->i_sb | (-1),2816 |
| DATA_SOURCE | 0 | inode | $0 |
| FUZZY_MAX | 1 | flags | 0 |
| STR_LEN | 0 | inode->i_sb | (-1),8 |
| BIT_INFO | 1 | flags | 0x0,0x4f |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | inode->i_sb->s_flags | 0-u64max[c] |
| NO_OVERFLOW_SIMPLE | 0 | inode->i_blkbits | |
| NO_OVERFLOW_SIMPLE | 0 | inode->i_mapping->host->i_bytes | |
| NO_OVERFLOW_SIMPLE | 0 | inode->i_sb->s_blocksize | |
| NO_OVERFLOW_SIMPLE | 0 | inode->i_sb->s_blocksize_bits |
fs/f2fs/inode.c f2fs_set_inode_flags() -> inode_set_flags()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | inode | 4096-ptr_max |
| PARAM_VALUE | 1 | flags | 0-15,64-79,16384-16399,16448-16463,32768-114767 |
| PARAM_VALUE | 2 | mask | 114767 |
| BUF_SIZE | 0 | inode->i_fop | (-1),272 |
| BUF_SIZE | 0 | inode->i_link | (-1),1-255 |
| BUF_SIZE | 0 | inode->i_mapping->a_ops | (-1),152 |
| BUF_SIZE | 0 | inode->i_op | (-1),256 |
| BUF_SIZE | 0 | inode->i_sb | (-1),2816,2880 |
| DATA_SOURCE | 0 | inode | $0 |
| FUZZY_MAX | 1 | flags | 0 |
| STR_LEN | 0 | inode | (-1)-1 |
| STR_LEN | 0 | inode | (-1)-1 |
| STR_LEN | 0 | inode->i_sb | (-1),8 |
| BIT_INFO | 1 | flags | 0x0,0x1c04f |
| NOSPEC | 0 | inode->i_ino | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | inode->i_bytes | 0-65023[c] |
| USER_DATA | 0 | inode->i_ino | 1-u32max |
| USER_DATA | 0 | inode->i_mode | 0-u16max |
| USER_DATA | 0 | inode->i_sb->s_flags | 0-u64max[c] |
| USER_DATA | 0 | inode->i_size | (-9223372036854775807)-(-4),0-s64max |
| NO_OVERFLOW_SIMPLE | 0 | inode->i_blkbits | |
| NO_OVERFLOW_SIMPLE | 0 | inode->i_mapping->host->i_bytes | |
| NO_OVERFLOW_SIMPLE | 0 | inode->i_sb->s_blocksize | |
| NO_OVERFLOW_SIMPLE | 0 | inode->i_sb->s_blocksize_bits | |
| HALF_LOCKED2 | &inode->i_rwsem | ||
| HALF_LOCKED2 | &sbi->cp_global_sem.internal_rwsem | ||
| HALF_LOCKED2 | 0 | &inode->i_rwsem |
fs/overlayfs/inode.c ovl_copyflags() -> inode_set_flags()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | inode | 4096-ptr_max |
| PARAM_VALUE | 1 | flags | 0-32783 |
| PARAM_VALUE | 2 | mask | 32783 |
| CAPPED_DATA | 1 | flags | 1 |
| DATA_SOURCE | 0 | inode | $1 |
| BIT_INFO | 1 | flags | 0x0,0x800f |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | inode->i_blkbits | |
| NO_OVERFLOW_SIMPLE | 0 | inode->i_sb->s_blocksize | |
| NO_OVERFLOW_SIMPLE | 0 | inode->i_sb->s_blocksize_bits |
fs/overlayfs/inode.c ovl_fileattr_set() -> inode_set_flags()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | inode | 4096-ptr_max |
| PARAM_VALUE | 1 | flags | 0-u16max |
| PARAM_VALUE | 2 | mask | 32783 |
| BIT_INFO | 1 | flags | 0x0,0x800f |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &inode->i_rwsem | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct inode)->i_rwsem |
fs/ext4/inode.c ext4_set_inode_flags() -> inode_set_flags()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | inode | 4096-ptr_max |
| PARAM_VALUE | 1 | flags | 0-15,64-79,8192-8207,8256-8271,16384-16399,16448-16463,24576-24591,24640-24655,32768-131151 |
| PARAM_VALUE | 2 | mask | 122959 |
| BUF_SIZE | 0 | inode | (-1)-s32max |
| BUF_SIZE | 0 | inode | (-1)-s32max |
| BUF_SIZE | 0 | inode->i_fop | (-1),272 |
| BUF_SIZE | 0 | inode->i_mapping->a_ops | (-1),152 |
| BUF_SIZE | 0 | inode->i_op | (-1),256 |
| CAPPED_DATA | 0 | inode | 1 |
| CAPPED_DATA | 0 | inode->i_ino | 1 |
| CAPPED_DATA | 0 | inode->i_sb | 1 |
| DATA_SOURCE | 0 | inode | $0 |
| BIT_INFO | 0 | inode->i_flags | 0x0,0xffffffff |
| BIT_INFO | 1 | flags | 0x0,0x1e04f |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | inode->__i_nlink | 1-u32max |
| USER_DATA | 0 | inode->i_mode | 1-u16max |
| NO_OVERFLOW_SIMPLE | 0 | inode->i_blkbits | |
| NO_OVERFLOW_SIMPLE | 0 | inode->i_bytes | |
| NO_OVERFLOW_SIMPLE | 0 | inode->i_ino | |
| NO_OVERFLOW_SIMPLE | 0 | inode->i_sb->s_blocksize | |
| NO_OVERFLOW_SIMPLE | 0 | inode->i_sb->s_blocksize_bits | |
| NO_OVERFLOW_SIMPLE | 0 | inode->i_size | |
| HALF_LOCKED2 | &inode->i_rwsem | ||
| HALF_LOCKED2 | 0 | &inode->i_rwsem |
mm/shmem.c shmem_set_inode_flags() -> inode_set_flags()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | inode | 4096-ptr_max |
| PARAM_VALUE | 1 | flags | 0,2,4,6,8,10,12,14,32768,32770,32772,32774,32776,32778,32780,32782 |
| PARAM_VALUE | 2 | mask | 32782 |
| BUF_SIZE | 0 | inode->i_sb | (-1),2880 |
| DATA_SOURCE | 0 | inode | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | inode->i_sb->s_flags | 0-u64max[c] |
| NO_OVERFLOW_SIMPLE | 0 | inode->i_blkbits | |
| NO_OVERFLOW_SIMPLE | 0 | inode->i_sb->s_blocksize | |
| NO_OVERFLOW_SIMPLE | 0 | inode->i_sb->s_blocksize_bits |
fs/overlayfs/util.c ovl_check_protattr() -> inode_set_flags()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | inode | 4096-ptr_max |
| PARAM_VALUE | 0 | inode->i_flags | 128 |
| PARAM_VALUE | 1 | flags | 0,4,8,12 |
| PARAM_VALUE | 2 | mask | 12 |
| DATA_SOURCE | 0 | inode | $0 |
| FUZZY_MAX | 1 | flags | 0 |
| BIT_INFO | 1 | flags | 0x0,0xc |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | inode->i_blkbits | |
| NO_OVERFLOW_SIMPLE | 0 | inode->i_sb->s_blocksize | |
| NO_OVERFLOW_SIMPLE | 0 | inode->i_sb->s_blocksize_bits |
fs/overlayfs/util.c ovl_set_protattr() -> inode_set_flags()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | inode | 4096-ptr_max |
| PARAM_VALUE | 1 | flags | 0,4,8,12 |
| PARAM_VALUE | 2 | mask | 12 |
| DATA_SOURCE | 0 | inode | $0 |
| FUZZY_MAX | 1 | flags | 0 |
| BIT_INFO | 1 | flags | 0x0,0xc |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
fs/ceph/crypto.c ceph_crypt_set_context() -> inode_set_flags()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | inode | 4096-ptr_max |
| PARAM_VALUE | 1 | flags | 16384 |
| PARAM_VALUE | 2 | mask | 16384 |
| BUF_SIZE | 0 | inode | (-1),1-s32max |
| BUF_SIZE | 0 | inode | (-1),1-s32max |
| BUF_SIZE | 0 | inode->i_fop | (-1),272 |
| BUF_SIZE | 0 | inode->i_mapping->a_ops | (-1),152 |
| BUF_SIZE | 0 | inode->i_op | (-1),256 |
| DATA_SOURCE | 0 | inode | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | inode->i_mode | 0-u16max |
| NO_OVERFLOW_SIMPLE | 0 | inode->i_blkbits | |
| NO_OVERFLOW_SIMPLE | 0 | inode->i_bytes | |
| NO_OVERFLOW_SIMPLE | 0 | inode->i_ino | |
| NO_OVERFLOW_SIMPLE | 0 | inode->i_sb->s_blocksize | |
| NO_OVERFLOW_SIMPLE | 0 | inode->i_sb->s_blocksize_bits | |
| NO_OVERFLOW_SIMPLE | 0 | inode->i_size | |
| HALF_LOCKED2 | 0 | &inode->i_rwsem |
fs/ceph/inode.c ceph_fill_inode() -> inode_set_flags()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | inode | 4096-ptr_max |
| PARAM_VALUE | 1 | flags | 16384 |
| PARAM_VALUE | 2 | mask | 16384 |
| BUF_SIZE | 0 | inode | (-1)-s32max |
| BUF_SIZE | 0 | inode | (-1)-s32max |
| CAPPED_DATA | 0 | inode | 1 |
| DATA_SOURCE | 0 | inode | $0 |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | inode->__i_nlink | 1-u32max |
| USER_DATA | 0 | inode->i_blocks | 0-18014398509481983,18428729675200069632-u64max |
| USER_DATA | 0 | inode->i_bytes | 0-511[c] |
| USER_DATA | 0 | inode->i_ino | 0-u64max |
| USER_DATA | 0 | inode->i_mode | 0-u16max[c] |
| USER_DATA | 0 | inode->i_rdev | 0-u32max[c] |
| USER_DATA | 0 | inode->i_sb->s_flags | 0-u64max[c] |
| NO_OVERFLOW_SIMPLE | 0 | inode->i_blkbits | |
| NO_OVERFLOW_SIMPLE | 0 | inode->i_mapping->host->i_bytes | |
| NO_OVERFLOW_SIMPLE | 0 | inode->i_mapping->host->i_size | |
| NO_OVERFLOW_SIMPLE | 0 | inode->i_sb->s_blocksize | |
| NO_OVERFLOW_SIMPLE | 0 | inode->i_sb->s_blocksize_bits | |
| NO_OVERFLOW_SIMPLE | 0 | inode->i_size | |
| LOCK2 | &ci->i_ceph_lock | ||
| LOCK2 | &mdsc->snap_rwsem | ||
| LOCK2 | &req->r_fill_mutex | ||
| LOCK2 | &session->s_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct ceph_inode_info)->i_ceph_lock | ||
| TYPE_LOCK | (struct ceph_mds_client)->snap_rwsem | ||
| TYPE_LOCK | (struct ceph_mds_request)->r_fill_mutex | ||
| TYPE_LOCK | (struct ceph_mds_session)->s_mutex |
fs/hfsplus/inode.c hfsplus_fileattr_set() -> inode_set_flags()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | inode | 4096-ptr_max |
| PARAM_VALUE | 1 | flags | 0,4,8,12 |
| PARAM_VALUE | 2 | mask | 12 |
| FUZZY_MAX | 1 | flags | 0 |
| BIT_INFO | 1 | flags | 0x0,0xc |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &inode->i_rwsem | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct inode)->i_rwsem |
fs/jfs/super.c jfs_quota_off() -> inode_set_flags()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | inode | 4096-ptr_max |
| PARAM_VALUE | 1 | flags | 0 |
| PARAM_VALUE | 2 | mask | 10 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | 0 | &inode->i_rwsem | |
| HALF_LOCKED2 | &sb->s_umount | ||
| TYPE_LOCK | (struct inode)->i_rwsem |
fs/jfs/super.c jfs_quota_on() -> inode_set_flags()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | inode | 4096-ptr_max |
| PARAM_VALUE | 1 | flags | 10 |
| PARAM_VALUE | 2 | mask | 10 |
| NOCHECK_CALL | |||
| LOCK2 | 0 | &inode->i_rwsem | |
| HALF_LOCKED2 | &sb->s_umount | ||
| TYPE_LOCK | (struct inode)->i_rwsem |
fs/efivarfs/inode.c efivarfs_fileattr_set() -> inode_set_flags()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | inode | 4096-ptr_max |
| PARAM_VALUE | 1 | flags | 0,8 |
| PARAM_VALUE | 2 | mask | 8 |
| FUZZY_MAX | 1 | flags | 0 |
| BIT_INFO | 1 | flags | 0x0,0x8 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &inode->i_rwsem | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct inode)->i_rwsem |
fs/ext2/super.c ext2_quota_off() -> inode_set_flags()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | inode | 4096-ptr_max |
| PARAM_VALUE | 1 | flags | 0 |
| PARAM_VALUE | 2 | mask | 10 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | 0 | &inode->i_rwsem | |
| HALF_LOCKED2 | &sb->s_umount | ||
| TYPE_LOCK | (struct inode)->i_rwsem |
fs/ext2/super.c ext2_quota_on() -> inode_set_flags()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | inode | 4096-ptr_max |
| PARAM_VALUE | 1 | flags | 10 |
| PARAM_VALUE | 2 | mask | 10 |
| NOCHECK_CALL | |||
| LOCK2 | 0 | &inode->i_rwsem | |
| HALF_LOCKED2 | &sb->s_umount | ||
| TYPE_LOCK | (struct inode)->i_rwsem |
fs/ntfs3/file.c ntfs_fileattr_set() -> inode_set_flags()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | inode | 4096-ptr_max |
| PARAM_VALUE | 1 | flags | 0,4,8,12 |
| PARAM_VALUE | 2 | mask | 12 |
| FUZZY_MAX | 1 | flags | 0 |
| BIT_INFO | 1 | flags | 0x0,0xc |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &inode->i_rwsem | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct inode)->i_rwsem |
fs/nilfs2/inode.c nilfs_set_inode_flags() -> inode_set_flags()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | inode | 4096-ptr_max |
| PARAM_VALUE | 1 | flags | 0-15,64-79 |
| PARAM_VALUE | 2 | mask | 79 |
| BUF_SIZE | 0 | inode | (-1),1-s32max |
| BUF_SIZE | 0 | inode | (-1),1-s32max |
| BUF_SIZE | 0 | inode->i_fop | (-1),272 |
| BUF_SIZE | 0 | inode->i_mapping->a_ops | (-1),152 |
| BUF_SIZE | 0 | inode->i_op | (-1),256 |
| CAPPED_DATA | 0 | inode | 1 |
| DATA_SOURCE | 0 | inode | $0 |
| FUZZY_MAX | 1 | flags | 0 |
| BIT_INFO | 1 | flags | 0x0,0x4f |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | inode->__i_nlink | 1-u32max |
| USER_DATA | 0 | inode->i_bytes | 0-511[c] |
| USER_DATA | 0 | inode->i_ino | 0-u64max |
| USER_DATA | 0 | inode->i_rdev | 0-u32max[c] |
| USER_DATA | 0 | inode->i_sb->s_flags | 0-u64max[c] |
| NO_OVERFLOW_SIMPLE | 0 | inode->i_blkbits | |
| NO_OVERFLOW_SIMPLE | 0 | inode->i_sb->s_blocksize | |
| NO_OVERFLOW_SIMPLE | 0 | inode->i_sb->s_blocksize_bits | |
| HALF_LOCKED2 | 0 | &inode->i_sb->s_fs_info->ns_segctor_sem |
fs/ext4/super.c ext4_quota_off() -> inode_set_flags()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | inode | 4096-ptr_max |
| PARAM_VALUE | 1 | flags | 0 |
| PARAM_VALUE | 2 | mask | 10 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | 0 | &inode->i_rwsem | |
| HALF_LOCKED2 | &sb->s_umount | ||
| TYPE_LOCK | (struct inode)->i_rwsem |
fs/ext4/super.c ext4_quota_on() -> inode_set_flags()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | inode | 4096-ptr_max |
| PARAM_VALUE | 1 | flags | 10 |
| PARAM_VALUE | 2 | mask | 10 |
| NOCHECK_CALL | |||
| LOCK2 | 0 | &inode->i_rwsem | |
| HALF_LOCKED2 | &sb->s_umount | ||
| TYPE_LOCK | (struct inode)->i_rwsem |