Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
fs/ext4/mballoc.c ext4_mb_generate_buddy_test() -> ext4_mb_generate_buddy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sb | 4096-ptr_max |
| PARAM_VALUE | 1 | buddy | 16,4096-ptr_max |
| PARAM_VALUE | 2 | bitmap | 16,4096-ptr_max |
| PARAM_VALUE | 3 | group | 0-1 |
| PARAM_VALUE | 4 | grp | 4096-ptr_max |
| PARAM_VALUE | 4 | *grp->bb_counters | s32min-s32max |
| BUF_SIZE | 0 | sb | s32min,(-10),1-s32max |
| BUF_SIZE | 0 | sb | s32min,(-10),1-s32max |
| BUF_SIZE | 1 | buddy | (-1)-4096 |
| BUF_SIZE | 1 | buddy | (-1)-4096 |
| BUF_SIZE | 2 | bitmap | (-1)-4096 |
| BUF_SIZE | 2 | bitmap | (-1)-4096 |
| CAPPED_DATA | 4 | grp | 1 |
| DATA_SOURCE | 0 | sb | $0 |
| DATA_SOURCE | 1 | buddy | $1 |
| DATA_SOURCE | 2 | bitmap | $2 |
| DATA_SOURCE | 3 | group | $3 |
| DATA_SOURCE | 4 | grp | $4 |
| HARD_MAX | 3 | group | 1 |
| MEM_ZERO | 1 | buddy | |
| MEM_ZERO | 2 | bitmap | |
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | sb->s_blocksize |
fs/ext4/mballoc.c ext4_mb_init_cache() -> ext4_mb_generate_buddy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sb | 4096-ptr_max |
| PARAM_VALUE | 0 | sb->s_cop->inode_info_offs | 1632,1720,1808,2632,2648,2704,2712 |
| PARAM_VALUE | 0 | sb->s_export_op->fh_to_parent | 0,5297,148606482432692224,436469935444291584,467281172929331200,529780027764285440,1092893949038768128,1556959531105513472,1608953577475584000,1649536479961075712,2404761408063094784,2970908329832960000,3511613614414655488-s64max |
| PARAM_VALUE | 0 | sb->s_export_op->get_parent | 0,8931,264940071972966400,291591359766798336,565128213429456896,893189740598853632,1241177127089143808,1474696885321834496,1812477326828269568,1893665921928286208,2210088671756947456,2437012291923775488,2483979068402987008-s64max |
| PARAM_VALUE | 1 | buddy | 4096-ptr_max |
| PARAM_VALUE | 1 | *buddy | 0-255 |
| PARAM_VALUE | 2 | bitmap | 1-u64max |
| PARAM_VALUE | 2 | *bitmap | 0-255 |
| PARAM_VALUE | 3 | group | 0-1073741823 |
| PARAM_VALUE | 4 | grp | 4096-ptr_max |
| PARAM_VALUE | 4 | grp->bb_fragments | 0 |
| CAPPED_DATA | 3 | group | 1 |
| DATA_SOURCE | 2 | bitmap | $1 [m] |
| DATA_SOURCE | 4 | grp | r ext4_get_group_info |
| MEM_ZERO | 4 | grp->bb_counters | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | sb | unit_byte |
| UNITS | 3 | group | unit_byte |
| LOCK2 | 0 | sb |
fs/ext4/mballoc.c mb_regenerate_buddy() -> ext4_mb_generate_buddy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sb | 4096-ptr_max |
| PARAM_VALUE | 4 | grp | 4096-ptr_max |
| PARAM_VALUE | 4 | grp->bb_fragments | 0 |
| CAPPED_DATA | 3 | group | 1 |
| CAPPED_DATA | 4 | grp | 1 |
| PARAM_COMPARE | 1 | buddy | != $2 |
| PARAM_COMPARE | 2 | bitmap | != $1 |
| PARAM_COMPARE | 2 | bitmap | != $1 |
| NOSPEC | 3 | group | |
| NOSPEC | 3 | group | |
| MEM_ZERO | 4 | grp->bb_counters | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 3 | group | 0-4294967294[c] |
| UNITS | 0 | sb | unit_byte |
| UNITS | 3 | group | unit_byte |
| HALF_LOCKED2 | ac->ac_sb | ||
| HALF_LOCKED2 | sb |