@@ -1169,7 +1169,7 @@ static int splice_shared_node(struct shared_node *src_node,
11691169 } else {
11701170 ins = malloc (sizeof (* ins ));
11711171 if (!ins ) {
1172- error_msg ( ERROR_MSG_MEMORY , NULL );
1172+ error_mem ( NULL );
11731173 return - ENOMEM ;
11741174 }
11751175 ins -> cache .start = node -> cache .start ;
@@ -1425,7 +1425,7 @@ static int add_mismatch_dir_hash(struct inode_record *dir_rec,
14251425
14261426 hash_record = malloc (sizeof (* hash_record ) + namelen );
14271427 if (!hash_record ) {
1428- error_msg ( ERROR_MSG_MEMORY , "mismatch dir hash record" );
1428+ error_mem ( "mismatch dir hash record" );
14291429 return - ENOMEM ;
14301430 }
14311431 memcpy (& hash_record -> key , key , sizeof (* key ));
@@ -5369,7 +5369,7 @@ struct chunk_record *btrfs_new_chunk_record(struct extent_buffer *leaf,
53695369
53705370 rec = calloc (1 , btrfs_chunk_record_size (num_stripes ));
53715371 if (!rec ) {
5372- error_msg ( ERROR_MSG_MEMORY , NULL );
5372+ error_mem ( NULL );
53735373 exit (-1 );
53745374 }
53755375
@@ -5458,7 +5458,7 @@ static int process_device_item(struct rb_root *dev_cache,
54585458
54595459 rec = malloc (sizeof (* rec ));
54605460 if (!rec ) {
5461- error_msg ( ERROR_MSG_MEMORY , NULL );
5461+ error_mem ( NULL );
54625462 return - ENOMEM ;
54635463 }
54645464
@@ -5519,7 +5519,7 @@ btrfs_new_block_group_record(struct extent_buffer *leaf, struct btrfs_key *key,
55195519
55205520 rec = calloc (1 , sizeof (* rec ));
55215521 if (!rec ) {
5522- error_msg ( ERROR_MSG_MEMORY , NULL );
5522+ error_mem ( NULL );
55235523 exit (-1 );
55245524 }
55255525
@@ -5584,7 +5584,7 @@ btrfs_new_device_extent_record(struct extent_buffer *leaf,
55845584
55855585 rec = calloc (1 , sizeof (* rec ));
55865586 if (!rec ) {
5587- error_msg ( ERROR_MSG_MEMORY , NULL );
5587+ error_mem ( NULL );
55885588 exit (-1 );
55895589 }
55905590
@@ -9160,7 +9160,7 @@ static int check_chunks_and_extents(void)
91609160 bits_nr = 1024 ;
91619161 bits = malloc (bits_nr * sizeof (struct block_info ));
91629162 if (!bits ) {
9163- error_msg ( ERROR_MSG_MEMORY , NULL );
9163+ error_mem ( NULL );
91649164 exit (1 );
91659165 }
91669166
0 commit comments