Defined in 1 files as a function:

Referenced in 10 files:

Smatch caller information:

fs/ext4/block_validity.c ext4_setup_system_zone() -> ext4_group_first_block_no()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
CAPPED_DATA 1 group_no 1
DATA_SOURCE 0 sb $0

fs/ext4/mballoc.c ext4_grp_offs_to_block() -> ext4_group_first_block_no()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
BUF_SIZE 0 sb s32min,(-10),(-1),1-s32max
BUF_SIZE 0 sb s32min,(-10),(-1),1-s32max
DATA_SOURCE 0 sb $0
NOSPEC 1 group_no
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 group_no 0-u32max
UNITS 0 sb unit_byte
UNITS 1 group_no unit_byte
HALF_LOCKED2 &ei->i_prealloc_lock
HALF_LOCKED2 &pa->pa_lock
HALF_LOCKED2 0 sb

fs/ext4/mballoc.c ext4_issue_discard() -> ext4_group_first_block_no()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
DATA_SOURCE 0 sb $0
DATA_SOURCE 1 group_no $1
NOSPEC 1 group_no
NOSPEC 1 group_no
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 sb->s_flags 0-u64max[c]
USER_DATA 1 group_no 0-4294967294[c]
NO_OVERFLOW_SIMPLE 0 sb->s_blocksize
NO_OVERFLOW_SIMPLE 0 sb->s_blocksize_bits
UNITS 0 sb unit_byte
UNITS 1 group_no unit_byte

fs/ext4/mballoc.c ext4_last_grp_cluster() -> ext4_group_first_block_no()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
DATA_SOURCE 0 sb $0
DATA_SOURCE 1 group_no $1
UNITS 1 group_no unit_byte
LOCK2 0 sb

fs/ext4/mballoc.c ext4_mb_free_metadata() -> ext4_group_first_block_no()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
PARAM_VALUE 1 group_no 0-4294967294
NOSPEC 1 group_no
NOSPEC 1 group_no
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 group_no 0-4294967294[c]
UNITS 0 sb unit_byte
UNITS 1 group_no unit_byte
LOCK2 sb
HALF_LOCKED2 &inode->i_rwsem

fs/ext4/mballoc.c ext4_mb_new_blocks_simple() -> ext4_group_first_block_no()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 group_no 0-u32max
UNITS 0 sb unit_byte

fs/ext4/mballoc.c ext4_mb_new_blocks_simple() -> ext4_group_first_block_no()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 group_no 0-u32max
UNITS 0 sb unit_byte

fs/ext4/mballoc.c ext4_mb_release_inode_pa() -> ext4_group_first_block_no()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
UNITS 0 sb unit_byte
UNITS 1 group_no unit_byte
LOCK2 sb

fs/ext4/mballoc.c ext4_mb_scan_aligned() -> ext4_group_first_block_no()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
PARAM_VALUE 0 sb->s_fs_info 4096-ptr_max
PARAM_VALUE 1 group_no 0-4294967294
NOSPEC 1 group_no
NOSPEC 1 group_no
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 group_no 0-4294967294[c]
UNITS 0 sb unit_byte
UNITS 1 group_no unit_byte
HALF_LOCKED2 sb

fs/ext4/mballoc.c mb_free_blocks() -> ext4_group_first_block_no()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
CAPPED_DATA 1 group_no 1
NOSPEC 1 group_no
NOSPEC 1 group_no
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 group_no 0-4294967294[c]
UNITS 0 sb unit_byte
UNITS 1 group_no unit_byte
HALF_LOCKED2 ac->ac_sb
HALF_LOCKED2 sb

fs/ext4/resize.c add_new_gdb_meta_bg() -> ext4_group_first_block_no()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
PARAM_VALUE 0 sb->s_fs_info 4096-ptr_max
DATA_SOURCE 0 sb $0
DATA_SOURCE 1 group_no $2
NO_OVERFLOW_SIMPLE 0 sb->s_blocksize
UNITS 0 sb unit_byte
UNITS 1 group_no unit_byte

fs/ext4/resize.c ext4_alloc_group_tables() -> ext4_group_first_block_no()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
PARAM_VALUE 0 sb->s_fs_info 4096-ptr_max
PARAM_VALUE 1 group_no 0-4294967294
CAPPED_DATA 1 group_no 1
DATA_SOURCE 0 sb $0
UNITS 0 sb unit_byte
UNITS 1 group_no unit_byte

fs/ext4/resize.c ext4_alloc_group_tables() -> ext4_group_first_block_no()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
PARAM_VALUE 0 sb->s_fs_info 4096-ptr_max
DATA_SOURCE 0 sb $0
UNITS 0 sb unit_byte
UNITS 1 group_no unit_byte

fs/ext4/resize.c ext4_flex_group_add() -> ext4_group_first_block_no()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
PARAM_VALUE 1 group_no 0
DATA_SOURCE 0 sb $0
UNITS 0 sb unit_byte

fs/ext4/resize.c ext4_flex_group_add() -> ext4_group_first_block_no()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
PARAM_VALUE 1 group_no 0
DATA_SOURCE 0 sb $0
UNITS 0 sb unit_byte

fs/ext4/resize.c ext4_group_extend_no_check() -> ext4_group_first_block_no()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
PARAM_VALUE 0 sb->s_fs_info 4096-ptr_max
PARAM_VALUE 1 group_no 0
DATA_SOURCE 0 sb $0
UNITS 0 sb unit_byte

fs/ext4/resize.c ext4_resize_fs() -> ext4_group_first_block_no()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
DATA_SOURCE 0 sb $0
NO_OVERFLOW_SIMPLE 1 group_no
UNITS 0 sb unit_byte

fs/ext4/resize.c ext4_resize_fs() -> ext4_group_first_block_no()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
DATA_SOURCE 0 sb $0
NO_OVERFLOW_SIMPLE 1 group_no
UNITS 0 sb unit_byte

fs/ext4/resize.c set_flexbg_block_bitmap() -> ext4_group_first_block_no()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
PARAM_VALUE 0 sb->s_fs_info 4096-ptr_max
DATA_SOURCE 0 sb $0
DATA_SOURCE 1 group_no r ext4_get_group_number
NO_OVERFLOW_SIMPLE 0 sb->s_blocksize
UNITS 0 sb unit_byte

fs/ext4/resize.c setup_new_flex_group_blocks() -> ext4_group_first_block_no()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
PARAM_VALUE 0 sb->s_fs_info 4096-ptr_max
DATA_SOURCE 0 sb $0
UNITS 0 sb unit_byte
UNITS 1 group_no unit_byte

fs/ext4/resize.c update_backups() -> ext4_group_first_block_no()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
PARAM_VALUE 0 sb->s_fs_info 4096-ptr_max
PARAM_VALUE 1 group_no 0-4294967294
CAPPED_DATA 1 group_no 1
DATA_SOURCE 0 sb $0
UNITS 0 sb unit_byte
UNITS 1 group_no unit_byte

fs/ext4/fsmap.c ext4_getfsmap_datadev_helper() -> ext4_group_first_block_no()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
PARAM_VALUE 0 sb->s_fs_info 4096-ptr_max
PARAM_VALUE 1 group_no 0-4294967294
CAPPED_DATA 1 group_no 1
DATA_SOURCE 0 sb $0
DATA_SOURCE 1 group_no $1

fs/ext4/fsmap.c ext4_getfsmap_datadev_helper() -> ext4_group_first_block_no()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
PARAM_VALUE 0 sb->s_fs_info 4096-ptr_max
PARAM_VALUE 1 group_no 1-u32max
CAPPED_DATA 1 group_no 1
DATA_SOURCE 0 sb $0

fs/ext4/fsmap.c ext4_getfsmap_find_sb() -> ext4_group_first_block_no()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
CAPPED_DATA 1 group_no 1
DATA_SOURCE 0 sb $0
DATA_SOURCE 1 group_no $1
UNITS 1 group_no unit_byte

fs/ext4/fsmap.c ext4_getfsmap_meta_helper() -> ext4_group_first_block_no()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
PARAM_VALUE 0 sb->s_fs_info 4096-ptr_max
PARAM_VALUE 1 group_no 0-4294967294
CAPPED_DATA 1 group_no 1
DATA_SOURCE 0 sb $0
DATA_SOURCE 1 group_no $1

fs/ext4/ioctl.c ext4_update_backup_sb() -> ext4_group_first_block_no()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
PARAM_VALUE 0 sb->s_fs_info 4096-ptr_max
PARAM_VALUE 1 group_no 1-4294967294
BUF_SIZE 0 sb (-1),2880
BUF_SIZE 0 sb (-1),2880
CAPPED_DATA 1 group_no 1
DATA_SOURCE 0 sb $0
DATA_SOURCE 1 group_no $2
STR_LEN 0 sb (-1),8
STR_LEN 0 sb (-1),8
RX_PATH
TASK_NOT_RUNNING
UNITS 0 sb unit_byte

fs/ext4/mballoc-test.c test_free_blocks_simple_range() -> ext4_group_first_block_no()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
PARAM_VALUE 1 group_no 1
BUF_SIZE 0 sb s32min,(-10),1-s32max
BUF_SIZE 0 sb s32min,(-10),1-s32max
DATA_SOURCE 1 group_no $1

fs/ext4/mballoc-test.c test_new_blocks_simple() -> ext4_group_first_block_no()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
PARAM_VALUE 1 group_no 1
BUF_SIZE 0 sb s32min,(-10),1-s32max
BUF_SIZE 0 sb s32min,(-10),1-s32max

fs/ext4/mballoc-test.c test_new_blocks_simple() -> ext4_group_first_block_no()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
PARAM_VALUE 1 group_no 1
BUF_SIZE 0 sb s32min,(-10),1-s32max
BUF_SIZE 0 sb s32min,(-10),1-s32max

fs/ext4/mballoc-test.c test_new_blocks_simple() -> ext4_group_first_block_no()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
PARAM_VALUE 1 group_no 1
BUF_SIZE 0 sb s32min,(-10),1-s32max
BUF_SIZE 0 sb s32min,(-10),1-s32max

fs/ext4/mballoc-test.c test_new_blocks_simple() -> ext4_group_first_block_no()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
PARAM_VALUE 1 group_no 2
BUF_SIZE 0 sb s32min,(-10),1-s32max
BUF_SIZE 0 sb s32min,(-10),1-s32max

fs/ext4/mballoc-test.c test_new_blocks_simple() -> ext4_group_first_block_no()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
PARAM_VALUE 1 group_no 2
BUF_SIZE 0 sb s32min,(-10),1-s32max
BUF_SIZE 0 sb s32min,(-10),1-s32max

fs/ext4/mballoc-test.c test_new_blocks_simple() -> ext4_group_first_block_no()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
PARAM_VALUE 1 group_no 1
BUF_SIZE 0 sb s32min,(-10),1-s32max
BUF_SIZE 0 sb s32min,(-10),1-s32max

fs/ext4/mballoc-test.c test_new_blocks_simple() -> ext4_group_first_block_no()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
PARAM_VALUE 1 group_no 0
BUF_SIZE 0 sb s32min,(-10),1-s32max
BUF_SIZE 0 sb s32min,(-10),1-s32max

fs/ext4/mballoc-test.c test_new_blocks_simple() -> ext4_group_first_block_no()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
BUF_SIZE 0 sb s32min,(-10),1-s32max
BUF_SIZE 0 sb s32min,(-10),1-s32max

fs/ext4/mballoc-test.c test_new_blocks_simple() -> ext4_group_first_block_no()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
PARAM_VALUE 1 group_no 1
BUF_SIZE 0 sb s32min,(-10),1-s32max
BUF_SIZE 0 sb s32min,(-10),1-s32max

fs/ext4/balloc.c ext4_init_block_bitmap() -> ext4_group_first_block_no()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
PARAM_VALUE 0 sb->s_fs_info 4096-ptr_max
PARAM_VALUE 1 group_no 1-u32max
BUF_SIZE 0 sb s32min,(-10),(-1),1-s32max
BUF_SIZE 0 sb s32min,(-10),(-1),1-s32max
CAPPED_DATA 1 group_no 1
DATA_SOURCE 0 sb $0
DATA_SOURCE 1 group_no $2
NOSPEC 1 group_no
NOSPEC 1 group_no
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 sb->s_flags 0-u64max[c]
USER_DATA 1 group_no 1-u32max[c]
NO_OVERFLOW_SIMPLE 0 sb->s_blocksize
NO_OVERFLOW_SIMPLE 0 sb->s_blocksize_bits
UNITS 0 sb unit_byte
UNITS 1 group_no unit_byte
LOCK2 0 sb

fs/ext4/balloc.c ext4_inode_to_goal_block() -> ext4_group_first_block_no()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 sb->s_flags 0-u64max[c]
NO_OVERFLOW_SIMPLE 0 sb->s_blocksize
NO_OVERFLOW_SIMPLE 0 sb->s_blocksize_bits
UNITS 0 sb unit_byte
UNITS 1 group_no unit_byte
HALF_LOCKED2 &inode->i_rwsem

fs/ext4/balloc.c ext4_num_overhead_clusters() -> ext4_group_first_block_no()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
PARAM_VALUE 0 sb->s_fs_info 4096-ptr_max
BUF_SIZE 0 sb s32min,(-10),(-1),1-s32max
BUF_SIZE 0 sb s32min,(-10),(-1),1-s32max
BUF_SIZE 0 sb->dq_op (-1),88
BUF_SIZE 0 sb->s_bdev (-1),2136
BUF_SIZE 0 sb->s_bdev->bd_queue (-1),2456
BUF_SIZE 0 sb->s_cop (-1),72
BUF_SIZE 0 sb->s_export_op (-1),80
BUF_SIZE 0 sb->s_op (-1),216
BUF_SIZE 0 sb->s_qcop (-1),88
BUF_SIZE 0 sb->s_vop (-1),48
BUF_SIZE 0 sb->s_xattr (-1),40
DATA_SOURCE 0 sb $0
DATA_SOURCE 1 group_no $1
NOSPEC 1 group_no
NOSPEC 1 group_no
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 sb->s_bdev_file->f_flags 0,32768-u32max
USER_DATA 0 sb->s_bdev_file->f_mode 0,64-u32max
USER_DATA 0 sb->s_flags 0-u64max[c]
USER_DATA 1 group_no 0-4294967294[c]
NO_OVERFLOW_SIMPLE 0 sb->s_blocksize
NO_OVERFLOW_SIMPLE 0 sb->s_blocksize_bits
NO_OVERFLOW_SIMPLE 0 sb->s_root->d_inode->i_blkbits
NO_OVERFLOW_SIMPLE 0 sb->s_root->d_inode->i_size
UNITS 0 sb unit_byte
UNITS 1 group_no unit_byte
HALF_LOCKED2 0 sb

fs/ext4/balloc.c ext4_valid_block_bitmap() -> ext4_group_first_block_no()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
PARAM_VALUE 0 sb->s_fs_info 4096-ptr_max
PARAM_VALUE 1 group_no 0-4294967294
BUF_SIZE 0 sb s32min,(-10),(-1),1-s32max
BUF_SIZE 0 sb s32min,(-10),(-1),1-s32max
CAPPED_DATA 1 group_no 1
DATA_SOURCE 0 sb $0
DATA_SOURCE 1 group_no $2
NOSPEC 1 group_no
NOSPEC 1 group_no
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 sb->s_flags 0-u64max[c]
USER_DATA 1 group_no 0-4294967294[c]
NO_OVERFLOW_SIMPLE 0 sb->s_blocksize
NO_OVERFLOW_SIMPLE 0 sb->s_blocksize_bits
UNITS 0 sb unit_byte
UNITS 1 group_no unit_byte
LOCK2 0 sb

fs/ext4/balloc.c num_clusters_in_group() -> ext4_group_first_block_no()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
PARAM_VALUE 0 sb->s_fs_info 4096-ptr_max
BUF_SIZE 0 sb s32min,(-10),(-1),1-s32max
BUF_SIZE 0 sb s32min,(-10),(-1),1-s32max
BUF_SIZE 0 sb->dq_op (-1),88
BUF_SIZE 0 sb->s_bdev (-1),2136
BUF_SIZE 0 sb->s_bdev->bd_queue (-1),2456
BUF_SIZE 0 sb->s_cop (-1),72
BUF_SIZE 0 sb->s_export_op (-1),80
BUF_SIZE 0 sb->s_op (-1),216
BUF_SIZE 0 sb->s_qcop (-1),88
BUF_SIZE 0 sb->s_vop (-1),48
BUF_SIZE 0 sb->s_xattr (-1),40
CAPPED_DATA 1 group_no 1
DATA_SOURCE 0 sb $0
DATA_SOURCE 1 group_no $1
NOSPEC 1 group_no
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 sb->s_bdev_file->f_flags 0,32768-u32max
USER_DATA 0 sb->s_bdev_file->f_mode 0,64-u32max
USER_DATA 0 sb->s_flags 0-u64max[c]
NO_OVERFLOW_SIMPLE 0 sb->s_blocksize
NO_OVERFLOW_SIMPLE 0 sb->s_blocksize_bits
NO_OVERFLOW_SIMPLE 0 sb->s_root->d_inode->i_blkbits
NO_OVERFLOW_SIMPLE 0 sb->s_root->d_inode->i_size
UNITS 0 sb unit_byte
UNITS 1 group_no unit_byte
HALF_LOCKED2 0 sb

fs/ext4/super.c descriptor_loc() -> ext4_group_first_block_no()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
CAPPED_DATA 1 group_no 1
DATA_SOURCE 0 sb $0