Defined in 2 files as a prototype:

Defined in 1 files as a macro:

Defined in 2 files as a function:

Referenced in 12 files:

Smatch caller information:

fs/hfs/extent.c __hfs_ext_write_extent() -> hfs_bnode_write()

Type Parameter Key Value
PARAM_VALUE 0 node 0,4096-ptr_max
PARAM_VALUE 0 node->this 0-4294967294
PARAM_VALUE 0 node->tree 4096-ptr_max
PARAM_VALUE 0 node->type 0,255
PARAM_VALUE 2 off 1-131070
PARAM_VALUE 3 len 0-65534,4294901761-u32max
BUF_SIZE 1 buf 12
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &((inode->i_sb)->s_fs_info)->ext_tree->tree_lock
HALF_LOCKED2 &inode->i_rwsem

fs/hfs/btree.c hfs_bmap_new_bmap() -> hfs_bnode_write()

Type Parameter Key Value
PARAM_VALUE 0 node 4096-ptr_max
PARAM_VALUE 0 node->next 0,8-u32max
PARAM_VALUE 0 node->this 0-4294967294
PARAM_VALUE 0 node->tree 4096-ptr_max
PARAM_VALUE 0 node->tree->hash_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 node->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 node->tree->inode->i_mapping->host->i_sb->s_export_op->fh_to_parent 0,4672,148606482432692224,436469935444291584,457356038048772096,467281172929331200,529780027764285440,1092893949038768128,1556959531105513472,1608953577475584000,1649536479961075712,2404761408063094784,2970908329832960000-s64max
PARAM_VALUE 0 node->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 node->tree->node_count 1-u32max
PARAM_VALUE 1 buf 626838875465596928
PARAM_VALUE 2 off 0
PARAM_VALUE 3 len 4
BUF_SIZE 0 node (-1),144-s32max
BUF_SIZE 0 node (-1),144-s32max
BUF_SIZE 1 buf 4
CAPPED_DATA 0 node->next 1
CAPPED_DATA 0 node->this 1
CAPPED_DATA 0 node->tree->node_size 1
DATA_SOURCE 0 node $0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &(sb->s_fs_info)->cat_tree->tree_lock

fs/hfs/btree.c hfs_bmap_new_bmap() -> hfs_bnode_write()

Type Parameter Key Value
PARAM_VALUE 0 node 4096-ptr_max
PARAM_VALUE 0 node->num_recs 1
PARAM_VALUE 0 node->this 0-4294967294
PARAM_VALUE 0 node->tree 4096-ptr_max
PARAM_VALUE 0 node->type 2
PARAM_VALUE 1 buf 3114923579064786944
PARAM_VALUE 2 off 0
PARAM_VALUE 3 len 14
BUF_SIZE 0 node (-1),144-s32max
BUF_SIZE 0 node (-1),144-s32max
BUF_SIZE 1 buf 14
CAPPED_DATA 0 node->this 1
CAPPED_DATA 0 node->tree->node_size 1
DATA_SOURCE 0 node r hfs_bnode_create
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 3 len unit_byte
HALF_LOCKED2 &(sb->s_fs_info)->cat_tree->tree_lock

fs/hfs/bnode.c hfs_bnode_unlink() -> hfs_bnode_write()

Type Parameter Key Value
PARAM_VALUE 0 node 4096-ptr_max
PARAM_VALUE 0 node->this 0-4294967294
PARAM_VALUE 1 buf 5322378102043881472
PARAM_VALUE 2 off 0
PARAM_VALUE 3 len 4
BUF_SIZE 0 node (-1),144-s32max
BUF_SIZE 0 node (-1),144-s32max
BUF_SIZE 1 buf 4
CAPPED_DATA 0 node->this 1
DATA_SOURCE 0 node r hfs_bnode_find
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &(sb->s_fs_info)->cat_tree->tree_lock
HALF_LOCKED2 &(sb->s_fs_info)->ext_tree->tree_lock

fs/hfs/bnode.c hfs_bnode_unlink() -> hfs_bnode_write()

Type Parameter Key Value
PARAM_VALUE 0 node 4096-ptr_max
PARAM_VALUE 0 node->this 0-4294967294
PARAM_VALUE 0 node->tree->inode->i_mapping->i_mmap_rwsem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 node->tree->inode->i_mapping->i_mmap_rwsem.first_waiter->type 0-1
PARAM_VALUE 1 buf 5322378102043881472
PARAM_VALUE 2 off 4
PARAM_VALUE 3 len 4
BUF_SIZE 0 node (-1),144-s32max
BUF_SIZE 0 node (-1),144-s32max
BUF_SIZE 1 buf 4
CAPPED_DATA 0 node->prev 1
CAPPED_DATA 0 node->this 1
DATA_SOURCE 0 node r hfs_bnode_find
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &(sb->s_fs_info)->cat_tree->tree_lock
HALF_LOCKED2 &(sb->s_fs_info)->ext_tree->tree_lock

fs/hfs/bnode.c hfs_bnode_write_u16() -> hfs_bnode_write()

Type Parameter Key Value
PARAM_VALUE 0 node 4096-ptr_max
PARAM_VALUE 0 node->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 node->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 node->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 1 buf 873892031438897152
PARAM_VALUE 1 *buf 0-u16max
PARAM_VALUE 3 len 2
BUF_SIZE 0 node (-1),144-s32max
BUF_SIZE 0 node (-1),144-s32max
BUF_SIZE 1 buf 2
DATA_SOURCE 0 node $0
DATA_SOURCE 2 off $1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 2 off unit_byte
HALF_LOCKED2 &(sb->s_fs_info)->cat_tree->tree_lock

fs/hfs/bnode.c hfs_bnode_write_u8() -> hfs_bnode_write()

Type Parameter Key Value
PARAM_VALUE 0 node 4096-ptr_max
PARAM_VALUE 0 node->tree 4096-ptr_max
PARAM_VALUE 3 len 1
BUF_SIZE 0 node (-1),144-s32max
BUF_SIZE 0 node (-1),144-s32max
CAPPED_DATA 0 node->tree->node_size 1
DATA_SOURCE 0 node $0
DATA_SOURCE 2 off $1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 2 off unit_byte
HALF_LOCKED2 &(sb->s_fs_info)->cat_tree->tree_lock

fs/hfs/inode.c hfs_write_inode() -> hfs_bnode_write()

Type Parameter Key Value
PARAM_VALUE 0 node 4096-ptr_max
PARAM_VALUE 0 node->this 0-4294967294
PARAM_VALUE 0 node->tree 4096-ptr_max
PARAM_VALUE 0 node->type 0,255
PARAM_VALUE 1 buf 2227297115582951424
PARAM_VALUE 2 off 1-131070
PARAM_VALUE 3 len 70
BUF_SIZE 1 buf 102
CAPPED_DATA 0 node->tree->node_size 1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 3 len unit_byte
LOCK2 &((main_inode->i_sb)->s_fs_info)->cat_tree->tree_lock
HALF_LOCKED2 &inode->i_rwsem

fs/hfs/inode.c hfs_write_inode() -> hfs_bnode_write()

Type Parameter Key Value
PARAM_VALUE 0 node 4096-ptr_max
PARAM_VALUE 0 node->this 0-4294967294
PARAM_VALUE 0 node->tree 4096-ptr_max
PARAM_VALUE 0 node->type 0,255
PARAM_VALUE 1 buf 2227297115582951424
PARAM_VALUE 2 off 1-131070
PARAM_VALUE 3 len 102
BUF_SIZE 1 buf 102
CAPPED_DATA 0 node->tree->node_size 1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 3 len unit_byte
LOCK2 &((main_inode->i_sb)->s_fs_info)->cat_tree->tree_lock
HALF_LOCKED2 &inode->i_rwsem

fs/hfs/inode.c hfs_write_inode() -> hfs_bnode_write()

Type Parameter Key Value
PARAM_VALUE 0 node 4096-ptr_max
PARAM_VALUE 0 node->this 0-4294967294
PARAM_VALUE 0 node->tree 4096-ptr_max
PARAM_VALUE 0 node->type 0,255
PARAM_VALUE 1 buf 2227297115582951424
PARAM_VALUE 2 off 1-131070
PARAM_VALUE 3 len 102
BUF_SIZE 1 buf 102
CAPPED_DATA 0 node->tree->node_size 1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 3 len unit_byte
LOCK2 &((main_inode->i_sb)->s_fs_info)->cat_tree->tree_lock
HALF_LOCKED2 &inode->i_rwsem

fs/hfs/brec.c hfs_bnode_split() -> hfs_bnode_write()

Type Parameter Key Value
PARAM_VALUE 0 node 4096-ptr_max
PARAM_VALUE 0 node->tree 4096-ptr_max
PARAM_VALUE 1 buf 537265733472096256
PARAM_VALUE 2 off 0
PARAM_VALUE 3 len 14
BUF_SIZE 0 node (-1),144-s32max
BUF_SIZE 0 node (-1),144-s32max
BUF_SIZE 1 buf 14
CAPPED_DATA 0 node->this 1
CAPPED_DATA 0 node->tree->node_size 1
DATA_SOURCE 0 node r hfs_bmap_alloc
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 3 len unit_byte
HALF_LOCKED2 &(sb->s_fs_info)->cat_tree->tree_lock

fs/hfs/brec.c hfs_bnode_split() -> hfs_bnode_write()

Type Parameter Key Value
PARAM_VALUE 0 node 4096-ptr_max
PARAM_VALUE 0 node->num_recs 0-65534
PARAM_VALUE 0 node->tree 4096-ptr_max
PARAM_VALUE 0 node->tree->hash_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 node->tree->inode->i_mapping->i_mmap_rwsem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 node->tree->inode->i_mapping->i_mmap_rwsem.first_waiter->type 0-1
PARAM_VALUE 1 buf 537265733472096256
PARAM_VALUE 2 off 0
PARAM_VALUE 3 len 14
BUF_SIZE 0 node (-1),144-s32max
BUF_SIZE 0 node (-1),144-s32max
BUF_SIZE 1 buf 14
CAPPED_DATA 0 node 1
CAPPED_DATA 0 node->next 1
CAPPED_DATA 0 node->num_recs 1
CAPPED_DATA 0 node->tree->node_size 1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 3 len unit_byte
HALF_LOCKED2 &(sb->s_fs_info)->cat_tree->tree_lock

fs/hfs/brec.c hfs_bnode_split() -> hfs_bnode_write()

Type Parameter Key Value
PARAM_VALUE 0 node 4096-ptr_max
PARAM_VALUE 0 node->this 0-4294967294
PARAM_VALUE 0 node->tree 4096-ptr_max
PARAM_VALUE 1 buf 537265733472096256
PARAM_VALUE 2 off 0
PARAM_VALUE 3 len 14
BUF_SIZE 0 node (-1)-0,144-s32max
BUF_SIZE 0 node (-1)-0,144-s32max
BUF_SIZE 1 buf 14
CAPPED_DATA 0 node->prev 1
CAPPED_DATA 0 node->tree->node_size 1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 3 len unit_byte
HALF_LOCKED2 &(sb->s_fs_info)->cat_tree->tree_lock

fs/hfs/brec.c hfs_brec_insert() -> hfs_bnode_write()

Type Parameter Key Value
PARAM_VALUE 0 node 4096-ptr_max
PARAM_VALUE 0 node->tree 4096-ptr_max
PARAM_VALUE 0 node->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 node->tree->inode->i_mapping->host->i_sb->s_export_op->fh_to_parent 0,5297,148606482432692224,436469935444291584,467281172929331200,529780027764285440,1092893949038768128,1556959531105513472,1608953577475584000,1649536479961075712,2404761408063094784,2970908329832960000,3511613614414655488-s64max
PARAM_VALUE 0 node->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 1 buf 4096-ptr_max
PARAM_VALUE 2 off 0-u16max
BUF_SIZE 0 node (-1),144-s32max
BUF_SIZE 0 node (-1),144-s32max
CAPPED_DATA 0 node->tree->node_size 1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 2 off unit_byte
UNITS 3 len unit_byte
HALF_LOCKED2 &(sb->s_fs_info)->cat_tree->tree_lock

fs/hfs/brec.c hfs_brec_insert() -> hfs_bnode_write()

Type Parameter Key Value
PARAM_VALUE 0 node 4096-ptr_max
PARAM_VALUE 0 node->tree 4096-ptr_max
PARAM_VALUE 0 node->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 node->tree->inode->i_mapping->host->i_sb->s_export_op->fh_to_parent 0,5297,148606482432692224,436469935444291584,467281172929331200,529780027764285440,1092893949038768128,1556959531105513472,1608953577475584000,1649536479961075712,2404761408063094784,2970908329832960000,3511613614414655488-s64max
PARAM_VALUE 0 node->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 3 len 0-102
BUF_SIZE 0 node (-1),144-s32max
BUF_SIZE 0 node (-1),144-s32max
BUF_SIZE 1 buf 4,12,102
BUF_SIZE 1 buf 4,12,102
CAPPED_DATA 0 node->tree->node_size 1
CAPPED_DATA 3 len 1
DATA_SOURCE 1 buf $1 [m]
DATA_SOURCE 3 len $2 [m]
FUZZY_MAX 3 len 4
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 2 off unit_byte
UNITS 3 len unit_byte
HALF_LOCKED2 &(sb->s_fs_info)->cat_tree->tree_lock

fs/hfs/brec.c hfs_btree_inc_height() -> hfs_bnode_write()

Type Parameter Key Value
PARAM_VALUE 0 node 4096-ptr_max
PARAM_VALUE 0 node->next 0
PARAM_VALUE 0 node->num_recs 0-1
PARAM_VALUE 0 node->parent 0
PARAM_VALUE 0 node->prev 0
PARAM_VALUE 0 node->type 0,255
PARAM_VALUE 1 buf 2252094649191325696
PARAM_VALUE 2 off 0
PARAM_VALUE 3 len 14
BUF_SIZE 0 node (-1),144-s32max
BUF_SIZE 0 node (-1),144-s32max
BUF_SIZE 1 buf 14
CAPPED_DATA 0 node->this 1
DATA_SOURCE 0 node r hfs_bmap_alloc
FUZZY_MAX 0 node->num_recs 1
FUZZY_MAX 0 node->type 255
HARD_MAX 0 node->num_recs 1
HARD_MAX 0 node->type 255
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 3 len unit_byte
HALF_LOCKED2 &(sb->s_fs_info)->cat_tree->tree_lock

fs/hfs/brec.c hfs_btree_inc_height() -> hfs_bnode_write()

Type Parameter Key Value
PARAM_VALUE 0 node 4096-ptr_max
PARAM_VALUE 0 node->next 0
PARAM_VALUE 0 node->num_recs 0-1
PARAM_VALUE 0 node->parent 0
PARAM_VALUE 0 node->prev 0
PARAM_VALUE 0 node->tree 4096-ptr_max
PARAM_VALUE 0 node->type 0,255
PARAM_VALUE 1 buf 364876040945975296
PARAM_VALUE 3 len 4
BUF_SIZE 0 node (-1),144-s32max
BUF_SIZE 0 node (-1),144-s32max
BUF_SIZE 1 buf 4
CAPPED_DATA 0 node->this 1
CAPPED_DATA 0 node->tree->node_size 1
DATA_SOURCE 0 node r hfs_bmap_alloc
FUZZY_MAX 0 node->num_recs 1
FUZZY_MAX 0 node->type 255
HARD_MAX 0 node->num_recs 1
HARD_MAX 0 node->type 255
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 2 off unit_byte
HALF_LOCKED2 &(sb->s_fs_info)->cat_tree->tree_lock

fs/hfs/attr.c __hfs_setxattr() -> hfs_bnode_write()

Type Parameter Key Value
PARAM_VALUE 0 node 4096-ptr_max
PARAM_VALUE 0 node->this 0-4294967294
PARAM_VALUE 0 node->tree 4096-ptr_max
PARAM_VALUE 0 node->type 0,255
PARAM_VALUE 1 buf 2365243421278597120
PARAM_VALUE 2 off 1-131070
PARAM_VALUE 3 len 102
BUF_SIZE 1 buf 102
CAPPED_DATA 0 node->tree->node_size 1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 3 len unit_byte
LOCK2 &((inode->i_sb)->s_fs_info)->cat_tree->tree_lock
HALF_LOCKED2 &inode->i_rwsem
HALF_LOCKED2 &inode->i_rwsem
HALF_LOCKED2 &unused->d_inode->i_rwsem