Defined in 2 files as a prototype:
Defined in 1 files as a macro:
Defined in 2 files as a function:
Referenced in 7 files:
- fs/hfs/brec.c, line 457
- fs/hfs/catalog.c
- fs/hfs/extent.c, line 124
- fs/hfsplus/attributes.c, line 250
- fs/hfsplus/brec.c, line 450
- fs/hfsplus/catalog.c
- fs/hfsplus/extents.c, line 107
Smatch caller information:
fs/hfs/extent.c __hfs_ext_write_extent() -> hfs_brec_insert()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fd | 925279991309574144,2002846610070261760,4306340586337705984 |
| PARAM_VALUE | 0 | fd->bnode | 0,4096-ptr_max |
| PARAM_VALUE | 0 | fd->bnode->this | 0-4294967294 |
| PARAM_VALUE | 0 | fd->bnode->tree | 4096-ptr_max |
| PARAM_VALUE | 0 | fd->bnode->type | 0,255 |
| PARAM_VALUE | 0 | fd->entrylength | (-65535)-65534 |
| PARAM_VALUE | 0 | fd->entryoffset | (-1),1-131070 |
| PARAM_VALUE | 0 | fd->keylength | (-1),1-u16max |
| PARAM_VALUE | 0 | fd->keyoffset | (-1)-u16max |
| PARAM_VALUE | 0 | fd->search_key | 4096-ptr_max |
| PARAM_VALUE | 0 | fd->search_key->ext.FkType | 0,255 |
| PARAM_VALUE | 0 | fd->search_key->key_len | 7 |
| PARAM_VALUE | 0 | fd->tree | 4096-ptr_max |
| PARAM_VALUE | 0 | fd->tree->inode->i_blocks | 0-18014398509481983,18428729675200069632-u64max |
| PARAM_VALUE | 0 | fd->tree->inode->i_bytes | 0-511 |
| PARAM_VALUE | 0 | fd->tree->inode->i_io_list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | fd->tree->inode->i_io_list.next->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | fd->tree->inode->i_io_list.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | fd->tree->inode->i_io_list.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | fd->tree->inode->i_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | fd->tree->inode->i_sb->s_fs_info->mdb_work.cpu | s32min-s32max |
| PARAM_VALUE | 0 | fd->tree->inode->i_sb->s_fs_info->mdb_work.timer.flags | 0-4294967295 |
| PARAM_VALUE | 0 | fd->tree->inode->i_sb->s_fs_info->work_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | fd->tree->inode->i_sb->s_fs_info->work_queued | 1 |
| PARAM_VALUE | 0 | fd->tree->inode->i_wb->list_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | fd->tree->inode->i_wb->work_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 2 | entry_len | 12 |
| BUF_SIZE | 1 | entry | 12 |
| DATA_SOURCE | 0 | fd | $1 |
| FUZZY_MAX | 0 | fd->search_key->ext.FkType | 255 |
| HARD_MAX | 0 | fd->search_key->ext.FkType | 255 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | fd->search_key->ext.FNum | 0-u32max |
| UNITS | 2 | entry_len | unit_byte |
| HALF_LOCKED2 | &((inode->i_sb)->s_fs_info)->ext_tree->tree_lock | ||
| HALF_LOCKED2 | &inode->i_rwsem |
fs/hfs/catalog.c hfs_cat_create() -> hfs_brec_insert()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fd | 9001909600535154688 |
| PARAM_VALUE | 0 | fd->bnode | 0,4096-ptr_max |
| PARAM_VALUE | 0 | fd->entrylength | (-65535)-65534 |
| PARAM_VALUE | 0 | fd->entryoffset | (-1),1-131070 |
| PARAM_VALUE | 0 | fd->keylength | (-1),1-u16max |
| PARAM_VALUE | 0 | fd->keyoffset | (-1)-u16max |
| PARAM_VALUE | 0 | fd->search_key | 4096-ptr_max |
| PARAM_VALUE | 0 | fd->tree | 4096-ptr_max |
| PARAM_VALUE | 1 | entry | 7435619040002797568 |
| PARAM_VALUE | 2 | entry_len | 46 |
| BUF_SIZE | 1 | entry | 102 |
| DATA_SOURCE | 2 | entry_len | r hfs_cat_build_thread |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &(sb->s_fs_info)->cat_tree->tree_lock |
fs/hfs/catalog.c hfs_cat_create() -> hfs_brec_insert()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fd | 9001909600535154688 |
| PARAM_VALUE | 0 | fd->bnode | 0,4096-ptr_max |
| PARAM_VALUE | 0 | fd->entrylength | (-65535)-65534 |
| PARAM_VALUE | 0 | fd->entryoffset | (-1),1-131070 |
| PARAM_VALUE | 0 | fd->keylength | (-1),1-u16max |
| PARAM_VALUE | 0 | fd->keyoffset | (-1)-u16max |
| PARAM_VALUE | 0 | fd->search_key | 4096-ptr_max |
| PARAM_VALUE | 0 | fd->tree | 4096-ptr_max |
| PARAM_VALUE | 1 | entry | 7435619040002797568 |
| PARAM_VALUE | 2 | entry_len | 70,102 |
| BUF_SIZE | 1 | entry | 102 |
| CAPPED_DATA | 2 | entry_len | 1 |
| DATA_SOURCE | 2 | entry_len | r hfs_cat_build_record |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &(sb->s_fs_info)->cat_tree->tree_lock |
fs/hfs/catalog.c hfs_cat_move() -> hfs_brec_insert()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fd | 8758014740902961152 |
| PARAM_VALUE | 0 | fd->bnode | 0,4096-ptr_max |
| PARAM_VALUE | 0 | fd->entrylength | (-65535)-65534 |
| PARAM_VALUE | 0 | fd->entryoffset | (-1),1-131070 |
| PARAM_VALUE | 0 | fd->keylength | (-1),1-u16max |
| PARAM_VALUE | 0 | fd->keyoffset | (-1)-u16max |
| PARAM_VALUE | 0 | fd->search_key | 4096-ptr_max |
| PARAM_VALUE | 0 | fd->tree | 4096-ptr_max |
| PARAM_VALUE | 1 | entry | 3017864024913690624 |
| PARAM_VALUE | 2 | entry_len | 0-102 |
| BUF_SIZE | 1 | entry | 102 |
| CAPPED_DATA | 2 | entry_len | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 2 | entry_len | unit_byte |
| LOCK2 | &(sb->s_fs_info)->cat_tree->tree_lock | ||
| HALF_LOCKED2 | &(dir->i_sb->s_fs_info)->cat_tree->tree_lock | ||
| HALF_LOCKED2 | &source->i_rwsem | ||
| HALF_LOCKED2 | &target->i_rwsem |
fs/hfs/catalog.c hfs_cat_move() -> hfs_brec_insert()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fd | 8758014740902961152 |
| PARAM_VALUE | 0 | fd->bnode | 0,4096-ptr_max |
| PARAM_VALUE | 0 | fd->entrylength | (-65535)-65534 |
| PARAM_VALUE | 0 | fd->entryoffset | (-1),1-131070 |
| PARAM_VALUE | 0 | fd->keylength | (-1),1-u16max |
| PARAM_VALUE | 0 | fd->keyoffset | (-1)-u16max |
| PARAM_VALUE | 0 | fd->search_key | 4096-ptr_max |
| PARAM_VALUE | 0 | fd->tree | 4096-ptr_max |
| PARAM_VALUE | 1 | entry | 3017864024913690624 |
| PARAM_VALUE | 2 | entry_len | 46 |
| BUF_SIZE | 1 | entry | 102 |
| DATA_SOURCE | 2 | entry_len | r hfs_cat_build_thread |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &(sb->s_fs_info)->cat_tree->tree_lock | ||
| HALF_LOCKED2 | &(dir->i_sb->s_fs_info)->cat_tree->tree_lock | ||
| HALF_LOCKED2 | &source->i_rwsem | ||
| HALF_LOCKED2 | &target->i_rwsem |
fs/hfs/brec.c hfs_brec_update_parent() -> hfs_brec_insert()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fd | 4096-ptr_max |
| PARAM_VALUE | 0 | fd->bnode | 4096-ptr_max |
| PARAM_VALUE | 0 | fd->bnode->this | 0-4294967294 |
| PARAM_VALUE | 0 | fd->bnode->tree | 4096-ptr_max |
| PARAM_VALUE | 0 | fd->bnode->tree->hash_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | fd->bnode->tree->inode->i_mapping->host->i_sb->s_export_op->encode_fh | 0,2,1398972869330624512,1616549510479982592,2037984473558433792,2776440803454029824,3228746867770966016,3502492669594062848,3526768263295340544,3559173554394271744,5000850239487131648,5583386343686406144,5817357685191483392-s64max |
| PARAM_VALUE | 0 | fd->bnode->tree->inode->i_mapping->host->i_sb->s_export_op->fh_to_dentry | 0,8684,447817974243774464,687732489194512384,742201802719268864,868497899885588480,1471448175530500096,2021658383390310400,2445877819203563520,2512819722689847296,2649270699546726400,2761259683714371584,2893332316235677696-s64max |
| PARAM_VALUE | 0 | fd->bnode->tree->inode->i_mapping->host->i_sb->s_export_op->fh_to_parent | 0,4672,5297,4573560380487,148606482432692224,436469935444291584,457356038048772096,467281172929331200,529780027764285440,1092893949038768128,1556959531105513472,1608953577475584000,1649536479961075712,2404761408063094784-s64max |
| PARAM_VALUE | 0 | fd->bnode->tree->inode->i_mapping->host->i_sb->s_export_op->get_parent | 0,8931,264940071972966400,291591359766798336,565128213429456896,893189740598853632,1241177127089143808,1474696885321834496,1812477326828269568,1893665921928286208,2210088671756947456,2437012291923775488,2483979068402987008-s64max |
| PARAM_VALUE | 0 | fd->bnode->tree->inode->i_mapping->i_mmap_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | fd->bnode->tree->inode->i_mapping->i_mmap_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | fd->tree | 4096-ptr_max |
| PARAM_VALUE | 0 | fd->tree->hash_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | fd->tree->inode->i_blocks | 0-18014398509481983,18428729675200069632-u64max |
| PARAM_VALUE | 0 | fd->tree->inode->i_bytes | 0-511 |
| PARAM_VALUE | 0 | fd->tree->inode->i_ino | 0-u32max |
| PARAM_VALUE | 0 | fd->tree->inode->i_io_list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | fd->tree->inode->i_io_list.next->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | fd->tree->inode->i_io_list.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | fd->tree->inode->i_io_list.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | fd->tree->inode->i_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | fd->tree->inode->i_mapping->host->i_sb->s_export_op->encode_fh | 0,2,1398972869330624512,1616549510479982592,2037984473558433792 |
| PARAM_VALUE | 0 | fd->tree->inode->i_mapping->host->i_sb->s_export_op->fh_to_dentry | 0,8684,447817974243774464,687732489194512384,742201802719268864,868497899885588480,1471448175530500096,2021658383390310400,2445877819203563520,2512819722689847296,2649270699546726400,2761259683714371584,2893332316235677696-s64max |
| PARAM_VALUE | 0 | fd->tree->inode->i_mapping->host->i_sb->s_export_op->fh_to_parent | 0,4672,148606482432692224,436469935444291584,457356038048772096 |
| PARAM_VALUE | 0 | fd->tree->inode->i_mapping->host->i_sb->s_export_op->get_parent | 0,8931,264940071972966400,291591359766798336,565128213429456896 |
| PARAM_VALUE | 0 | fd->tree->inode->i_mapping->i_mmap_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | fd->tree->inode->i_mapping->i_mmap_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | fd->tree->inode->i_sb->s_cop->empty_dir | 0,86,661756434209751040,4392966320616476672,5234023279986843648,8614756098313990144 |
| PARAM_VALUE | 0 | fd->tree->inode->i_sb->s_cop->get_context | 0,706,17350455714160640,4513809449498124288,5149251875611672576,7067778626864828416 |
| PARAM_VALUE | 0 | fd->tree->inode->i_sb->s_cop->set_context | 0,67,317457138841939968,3250154607523569664,5979066299606671360,6756104566897242112 |
| PARAM_VALUE | 0 | fd->tree->inode->i_sb->s_fs_info->mdb_work.cpu | s32min-s32max |
| PARAM_VALUE | 0 | fd->tree->inode->i_sb->s_fs_info->mdb_work.timer.flags | 0-4294967295 |
| PARAM_VALUE | 0 | fd->tree->inode->i_sb->s_fs_info->work_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | fd->tree->inode->i_sb->s_fs_info->work_queued | 1 |
| PARAM_VALUE | 0 | fd->tree->inode->i_wb->list_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | fd->tree->inode->i_wb->work_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | fd->tree->node_count | 1-u32max |
| PARAM_VALUE | 1 | entry | 4399449703302156288 |
| PARAM_VALUE | 2 | entry_len | 4 |
| BUF_SIZE | 0 | fd->bnode | (-1),144-s32max |
| BUF_SIZE | 1 | entry | 4 |
| CAPPED_DATA | 0 | fd->bnode->tree->node_size | 1 |
| DATA_SOURCE | 0 | fd | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | fd->search_key->ext.FNum | |
| UNITS | 2 | entry_len | unit_byte |
| HALF_LOCKED2 | &(sb->s_fs_info)->cat_tree->tree_lock |