Defined in 1 files as a function:

Referenced in 4 files:

Smatch caller information:

fs/nilfs2/sufile.c nilfs_sufile_trim_fs() -> nilfs_get_segment_range()

Type Parameter Key Value
PARAM_VALUE 0 nilfs 4096-ptr_max
PARAM_VALUE 2 seg_start 1534652652491788288
PARAM_VALUE 3 seg_end 3427426665237434368
BUF_SIZE 0 nilfs 1-s32max
BUF_SIZE 0 nilfs 1-s32max
CAPPED_DATA 0 nilfs->ns_first_data_block 1
CAPABLE 0 21
NOCHECK_CALL
UNITS 0 nilfs unit_byte
LOCK2 &nilfs->ns_segctor_sem
TYPE_LOCK (struct the_nilfs)->ns_segctor_sem

fs/nilfs2/segbuf.c nilfs_segbuf_map() -> nilfs_get_segment_range()

Type Parameter Key Value
PARAM_VALUE 0 nilfs 4096-ptr_max
PARAM_VALUE 2 seg_start 4096-ptr_max
PARAM_VALUE 3 seg_end 4096-ptr_max
BUF_SIZE 0 nilfs 1-s32max
BUF_SIZE 0 nilfs 1-s32max
DATA_SOURCE 0 nilfs $3
DATA_SOURCE 1 segnum $1
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 0 nilfs unit_byte
UNITS 1 segnum unit_array_size

fs/nilfs2/recovery.c nilfs_do_roll_forward() -> nilfs_get_segment_range()

Type Parameter Key Value
PARAM_VALUE 0 nilfs 4096-ptr_max
PARAM_VALUE 0 nilfs->ns_blocks_per_segment 0-u32max
PARAM_VALUE 1 segnum 0
PARAM_VALUE 2 seg_start 3702641317978882048
PARAM_VALUE 3 seg_end 7706030956282400768
BUF_SIZE 0 nilfs->ns_sb (-1),2880
CAPPED_DATA 0 nilfs->ns_blocks_per_segment 1
CAPPED_DATA 0 nilfs->ns_blocksize 1
DATA_SOURCE 0 nilfs $0
DATA_SOURCE 1 segnum r nilfs_get_segnum_of_block
STR_LEN 0 nilfs (-1),8
STR_LEN 0 nilfs (-1),8
STR_LEN 0 nilfs->ns_sb (-1),8
BIT_INFO 0 nilfs->ns_mount_opt 0x0,0xffffffffffffbfff
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
USER_DATA 0 nilfs->ns_cpfile->__i_nlink 1-u32max
USER_DATA 0 nilfs->ns_cpfile->i_blocks 0-u64max
USER_DATA 0 nilfs->ns_cpfile->i_bytes 0-511[c]
USER_DATA 0 nilfs->ns_cpfile->i_ino 0-u64max
USER_DATA 0 nilfs->ns_cpfile->i_mode 32768[c]
USER_DATA 0 nilfs->ns_cpfile->i_rdev 0-u32max[c]
USER_DATA 0 nilfs->ns_dat->__i_nlink 1-u32max
USER_DATA 0 nilfs->ns_dat->i_blocks 0-u64max
USER_DATA 0 nilfs->ns_dat->i_bytes 0-511[c]
USER_DATA 0 nilfs->ns_dat->i_ino 0-u64max
USER_DATA 0 nilfs->ns_dat->i_mode 32768[c]
USER_DATA 0 nilfs->ns_dat->i_rdev 0-u32max[c]
USER_DATA 0 nilfs->ns_nrsvsegs 8-92233368503352116[c]
USER_DATA 0 nilfs->ns_sb->s_flags 0-2147486719[c]
USER_DATA 0 nilfs->ns_sufile->__i_nlink 1-u32max
USER_DATA 0 nilfs->ns_sufile->i_blocks 0-u64max
USER_DATA 0 nilfs->ns_sufile->i_bytes 0-511[c]
USER_DATA 0 nilfs->ns_sufile->i_ino 0-u64max
USER_DATA 0 nilfs->ns_sufile->i_mode 32768[c]
USER_DATA 0 nilfs->ns_sufile->i_rdev 0-u32max[c]
NO_OVERFLOW_SIMPLE 0 nilfs->ns_cpfile->i_mapping->host->i_bytes
NO_OVERFLOW_SIMPLE 0 nilfs->ns_dat->i_mapping->host->i_bytes
HALF_LOCKED2 &fc->uapi_mutex

fs/nilfs2/recovery.c nilfs_do_roll_forward() -> nilfs_get_segment_range()

Type Parameter Key Value
PARAM_VALUE 0 nilfs 4096-ptr_max
PARAM_VALUE 0 nilfs->ns_blocks_per_segment 0-u32max
PARAM_VALUE 2 seg_start 3702641317978882048
PARAM_VALUE 3 seg_end 7706030956282400768
BUF_SIZE 0 nilfs->ns_sb (-1),2880
CAPPED_DATA 0 nilfs->ns_blocks_per_segment 1
CAPPED_DATA 0 nilfs->ns_blocksize 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
BIT_INFO 0 nilfs->ns_mount_opt 0x0,0xffffffffffffbfff
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
USER_DATA 0 nilfs->ns_cpfile->__i_nlink 1-u32max
USER_DATA 0 nilfs->ns_cpfile->i_blocks 0-u64max
USER_DATA 0 nilfs->ns_cpfile->i_bytes 0-511[c]
USER_DATA 0 nilfs->ns_cpfile->i_ino 0-u64max
USER_DATA 0 nilfs->ns_cpfile->i_mode 32768[c]
USER_DATA 0 nilfs->ns_cpfile->i_rdev 0-u32max[c]
USER_DATA 0 nilfs->ns_dat->__i_nlink 1-u32max
USER_DATA 0 nilfs->ns_dat->i_blocks 0-u64max
USER_DATA 0 nilfs->ns_dat->i_bytes 0-511[c]
USER_DATA 0 nilfs->ns_dat->i_ino 0-u64max
USER_DATA 0 nilfs->ns_dat->i_mode 32768[c]
USER_DATA 0 nilfs->ns_dat->i_rdev 0-u32max[c]
USER_DATA 0 nilfs->ns_nrsvsegs 8-92233368503352116[c]
USER_DATA 0 nilfs->ns_sb->s_flags 0-2147486719[c]
USER_DATA 0 nilfs->ns_sufile->__i_nlink 1-u32max
USER_DATA 0 nilfs->ns_sufile->i_blocks 0-u64max
USER_DATA 0 nilfs->ns_sufile->i_bytes 0-511[c]
USER_DATA 0 nilfs->ns_sufile->i_ino 0-u64max
USER_DATA 0 nilfs->ns_sufile->i_mode 32768[c]
USER_DATA 0 nilfs->ns_sufile->i_rdev 0-u32max[c]
NO_OVERFLOW_SIMPLE 0 nilfs->ns_cpfile->i_mapping->host->i_bytes
NO_OVERFLOW_SIMPLE 0 nilfs->ns_dat->i_mapping->host->i_bytes
HALF_LOCKED2 &fc->uapi_mutex

fs/nilfs2/recovery.c nilfs_search_super_root() -> nilfs_get_segment_range()

Type Parameter Key Value
PARAM_VALUE 0 nilfs 4096-ptr_max
PARAM_VALUE 0 nilfs->ns_blocks_per_segment 0-u32max
PARAM_VALUE 2 seg_start 4424127328919867392
PARAM_VALUE 3 seg_end 926981457746866176
BUF_SIZE 0 nilfs 1400
BUF_SIZE 0 nilfs->ns_sb (-1),2880
CAPPED_DATA 0 nilfs->ns_blocks_per_segment 1
CAPPED_DATA 0 nilfs->ns_blocksize 1
CAPPED_DATA 0 nilfs->ns_sb->s_dev 1
DATA_SOURCE 0 nilfs $0
DATA_SOURCE 1 segnum r nilfs_get_segnum_of_block
STR_LEN 0 nilfs (-1),8
STR_LEN 0 nilfs (-1),8
STR_LEN 0 nilfs->ns_sb (-1),8
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
USER_DATA 0 nilfs->ns_sb->s_flags 0-2147486719[c]
HALF_LOCKED2 &fc->uapi_mutex

fs/nilfs2/recovery.c nilfs_search_super_root() -> nilfs_get_segment_range()

Type Parameter Key Value
PARAM_VALUE 0 nilfs 4096-ptr_max
PARAM_VALUE 0 nilfs->ns_blocks_per_segment 1-u32max
PARAM_VALUE 2 seg_start 2464356649828503552
PARAM_VALUE 2 *seg_start 1-u64max
PARAM_VALUE 3 seg_end 6639384037774127104
BUF_SIZE 0 nilfs 1400
BUF_SIZE 0 nilfs->ns_sb (-1),2880
CAPPED_DATA 0 nilfs->ns_blocks_per_segment 1
CAPPED_DATA 0 nilfs->ns_blocksize 1
CAPPED_DATA 0 nilfs->ns_sb->s_dev 1
DATA_SOURCE 0 nilfs $0
DATA_SOURCE 1 segnum r nilfs_get_segnum_of_block
STR_LEN 0 nilfs (-1),8
STR_LEN 0 nilfs (-1),8
STR_LEN 0 nilfs->ns_sb (-1),8
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
USER_DATA 0 nilfs->ns_sb->s_flags 0-2147486719[c]
HALF_LOCKED2 &fc->uapi_mutex

fs/nilfs2/recovery.c nilfs_search_super_root() -> nilfs_get_segment_range()

Type Parameter Key Value
PARAM_VALUE 0 nilfs 4096-ptr_max
PARAM_VALUE 0 nilfs->ns_blocks_per_segment 1-u32max
PARAM_VALUE 2 seg_start 4424127328919867392
PARAM_VALUE 3 seg_end 926981457746866176
BUF_SIZE 0 nilfs 1400
BUF_SIZE 0 nilfs->ns_sb (-1),2880
CAPPED_DATA 0 nilfs->ns_blocks_per_segment 1
CAPPED_DATA 0 nilfs->ns_blocksize 1
CAPPED_DATA 0 nilfs->ns_sb->s_dev 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
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
USER_DATA 0 nilfs->ns_sb->s_flags 0-2147486719[c]
HALF_LOCKED2 &fc->uapi_mutex

fs/nilfs2/the_nilfs.c nilfs_discard_segments() -> nilfs_get_segment_range()

Type Parameter Key Value
PARAM_VALUE 0 nilfs 4096-ptr_max
PARAM_VALUE 2 seg_start 3422769290067095552
PARAM_VALUE 3 seg_end 5506498450130034688
BUF_SIZE 0 nilfs 1-s32max
BUF_SIZE 0 nilfs 1-s32max
DATA_SOURCE 0 nilfs $0
CAPABLE 0 21
BIT_INFO 0 nilfs->ns_mount_opt 0x8000,0xffffffffffffffff
NOCHECK_CALL
UNITS 0 nilfs unit_byte