Home
last modified time | relevance | path

Searched refs:BLKH_SIZE (Results 1 – 4 of 4) sorted by relevance

/linux-2.4.37.9/fs/reiserfs/
Dprints.c675 if ( nr > (bh->b_size - BLKH_SIZE) / IH_SIZE) in check_leaf_block_head()
678 bh->b_size - BLKH_SIZE - IH_SIZE * nr ) in check_leaf_block_head()
691 if (B_NR_ITEMS (bh) > (bh->b_size - BLKH_SIZE) / IH_SIZE) in check_internal_block_head()
695 bh->b_size - BLKH_SIZE - KEY_SIZE * B_NR_ITEMS (bh) - DC_SIZE * (B_NR_ITEMS (bh) + 1)) in check_internal_block_head()
Dstree.c507 if (nr < 1 || nr > ((blocksize - BLKH_SIZE) / (IH_SIZE + MIN_ITEM_LEN))) { in is_leaf()
512 ih = (struct item_head *)(buf + BLKH_SIZE) + nr - 1; in is_leaf()
513 used_space = BLKH_SIZE + IH_SIZE * nr + (blocksize - ih_location (ih)); in is_leaf()
524 ih = (struct item_head *)(buf + BLKH_SIZE); in is_leaf()
567 if (nr > (blocksize - BLKH_SIZE - DC_SIZE) / (KEY_SIZE + DC_SIZE)) { in is_internal()
573 used_space = BLKH_SIZE + KEY_SIZE * nr + DC_SIZE * (nr + 1); in is_internal()
Dfix_node.c2023 max_num_of_items = (blocksize - BLKH_SIZE) / (IH_SIZE + MIN_ITEM_LEN); in get_virtual_node_size()
2024 max_num_of_entries = (blocksize - BLKH_SIZE - IH_SIZE) / in get_virtual_node_size()
/linux-2.4.37.9/include/linux/
Dreiserfs_fs.h722 #define MAX_ITEM_LEN(block_size) (block_size - BLKH_SIZE - IH_SIZE)
754 #define BLKH_SIZE (sizeof(struct block_head)) macro
1173 ((p_s_bh)->b_data+BLKH_SIZE+B_NR_ITEMS(p_s_bh)*KEY_SIZE+DC_SIZE*(n_pos)))
1181 #define MAX_CHILD_SIZE(bh) ((int)( (bh)->b_size - BLKH_SIZE ))
1584 #define B_N_PITEM_HEAD(bh,item_num) ( (struct item_head * )((bh)->b_data + BLKH_SIZE) + (item_num) )
1587 #define B_N_PDELIM_KEY(bh,item_num) ( (struct key * )((bh)->b_data + BLKH_SIZE) + (item_num) )
1605 #define MAX_DIRECT_ITEM_LEN(size) ((size) - BLKH_SIZE - 2*IH_SIZE - SD_SIZE - UNFM_P_SIZE)