Searched refs:BLKH_SIZE (Results 1 – 4 of 4) sorted by relevance
711 if (nr > (bh->b_size - BLKH_SIZE) / IH_SIZE) in check_leaf_block_head()714 if (blkh_free_space(blkh) > bh->b_size - BLKH_SIZE - IH_SIZE * nr) in check_leaf_block_head()728 if (B_NR_ITEMS(bh) > (bh->b_size - BLKH_SIZE) / IH_SIZE) in check_internal_block_head()732 bh->b_size - BLKH_SIZE - KEY_SIZE * B_NR_ITEMS(bh) - in check_internal_block_head()
413 if (nr < 1 || nr > ((blocksize - BLKH_SIZE) / (IH_SIZE + MIN_ITEM_LEN))) { in is_leaf()419 ih = (struct item_head *)(buf + BLKH_SIZE) + nr - 1; in is_leaf()420 used_space = BLKH_SIZE + IH_SIZE * nr + (blocksize - ih_location(ih)); in is_leaf()431 ih = (struct item_head *)(buf + BLKH_SIZE); in is_leaf()484 if (nr > (blocksize - BLKH_SIZE - DC_SIZE) / (KEY_SIZE + DC_SIZE)) { in is_internal()491 used_space = BLKH_SIZE + KEY_SIZE * nr + DC_SIZE * (nr + 1); in is_internal()
1400 #define MAX_ITEM_LEN(block_size) (block_size - BLKH_SIZE - IH_SIZE)1429 #define BLKH_SIZE (sizeof(struct block_head)) macro1825 ((bh)->b_data + BLKH_SIZE + B_NR_ITEMS(bh) * KEY_SIZE + DC_SIZE * (n_pos)))1834 #define MAX_CHILD_SIZE(bh) ((int)( (bh)->b_size - BLKH_SIZE ))2229 #define B_N_PITEM_HEAD(bh,item_num) ( (struct item_head * )((bh)->b_data + BLKH_SIZE) + (item_num) )2232 #define B_N_PDELIM_KEY(bh,item_num) ( (struct reiserfs_key * )((bh)->b_data + BLKH_SIZE) + (item_nu…2250 #define MAX_DIRECT_ITEM_LEN(size) ((size) - BLKH_SIZE - 2*IH_SIZE - SD_SIZE - UNFM_P_SIZE)
2045 max_num_of_items = (blocksize - BLKH_SIZE) / (IH_SIZE + MIN_ITEM_LEN); in get_virtual_node_size()2046 max_num_of_entries = (blocksize - BLKH_SIZE - IH_SIZE) / in get_virtual_node_size()