Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 2 files:

Smatch caller information:

fs/nilfs2/sufile.c nilfs_sufile_resize() -> nilfs_set_nsegments()

Type Parameter Key Value
PARAM_VALUE 0 nilfs 4096-ptr_max
BUF_SIZE 0 nilfs 1-s32max
BUF_SIZE 0 nilfs 1-s32max
DATA_SOURCE 1 nsegs $1
CAPABLE 0 21
NOCHECK_CALL
USER_DATA 1 nsegs 0-2147475456[c]
UNITS 0 nilfs unit_byte
LOCK2 &nilfs->ns_segctor_sem
TYPE_LOCK (struct the_nilfs)->ns_segctor_sem

fs/nilfs2/the_nilfs.c nilfs_store_disk_layout() -> nilfs_set_nsegments()

Type Parameter Key Value
PARAM_VALUE 0 nilfs 4096-ptr_max
PARAM_VALUE 0 nilfs->ns_r_segments_percentage 1-99
PARAM_VALUE 0 nilfs->ns_sbsize 0-1024
BUF_SIZE 0 nilfs 1400
BUF_SIZE 0 nilfs->ns_sb (-1),2880
CAPPED_DATA 0 nilfs->ns_inode_size 1
CAPPED_DATA 0 nilfs->ns_sb->s_dev 1
CAPPED_DATA 1 nsegs 1
CAPPED_DATA 1 nsegs 1
DATA_SOURCE 0 nilfs $0
STR_LEN 0 nilfs (-1),8
STR_LEN 0 nilfs (-1),8
STR_LEN 0 nilfs->ns_sb (-1),8
PARAM_COMPARE 0 nilfs->ns_blocksize >= $0->ns_inode_size
BIT_INFO 0 nilfs->ns_r_segments_percentage 0x0,0xffffffff
BIT_INFO 0 nilfs->ns_sbsize 0x0,0xffff
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
USER_DATA 0 nilfs->ns_sb->s_flags 0-2147486719[c]
UNITS 1 nsegs unit_array_size
HALF_LOCKED2 &fc->uapi_mutex