Lines Matching refs:bh

830 	struct buffer_head *bh;  in leaf_delete_items()  local
831 int item_amount = B_NR_ITEMS(bh = cur_bi->bi_bh); in leaf_delete_items()
833 RFALSE(!bh, "10155: bh is not defined"); in leaf_delete_items()
847 do_balance_mark_leaf_dirty(cur_bi->tb, bh, 0); in leaf_delete_items()
878 ih = item_head(bh, B_NR_ITEMS(bh) - 1); in leaf_delete_items()
894 leaf_cut_from_buffer(cur_bi, B_NR_ITEMS(bh) - 1, in leaf_delete_items()
906 struct buffer_head *bh = bi->bi_bh; in leaf_insert_into_buf() local
914 blkh = B_BLK_HEAD(bh); in leaf_insert_into_buf()
921 bh, inserted_item_ih); in leaf_insert_into_buf()
927 ih = item_head(bh, before); in leaf_insert_into_buf()
930 last_loc = nr ? ih_location(&ih[nr - before - 1]) : bh->b_size; in leaf_insert_into_buf()
931 unmoved_loc = before ? ih_location(ih - 1) : bh->b_size; in leaf_insert_into_buf()
933 memmove(bh->b_data + last_loc - ih_item_len(inserted_item_ih), in leaf_insert_into_buf()
934 bh->b_data + last_loc, unmoved_loc - last_loc); in leaf_insert_into_buf()
936 to = bh->b_data + unmoved_loc - ih_item_len(inserted_item_ih); in leaf_insert_into_buf()
962 do_balance_mark_leaf_dirty(bi->tb, bh, 1); in leaf_insert_into_buf()
982 struct buffer_head *bh = bi->bi_bh; in leaf_paste_in_buffer() local
989 blkh = B_BLK_HEAD(bh); in leaf_paste_in_buffer()
1011 ih = item_head(bh, affected_item_num); in leaf_paste_in_buffer()
1014 unmoved_loc = affected_item_num ? ih_location(ih - 1) : bh->b_size; in leaf_paste_in_buffer()
1017 memmove(bh->b_data + last_loc - paste_size, bh->b_data + last_loc, in leaf_paste_in_buffer()
1030 memmove(bh->b_data + ih_location(ih) + in leaf_paste_in_buffer()
1032 bh->b_data + ih_location(ih), in leaf_paste_in_buffer()
1035 memset(bh->b_data + ih_location(ih), 0, in leaf_paste_in_buffer()
1037 memcpy(bh->b_data + ih_location(ih) + in leaf_paste_in_buffer()
1041 memset(bh->b_data + unmoved_loc - paste_size, 0, in leaf_paste_in_buffer()
1043 memcpy(bh->b_data + unmoved_loc - paste_size + in leaf_paste_in_buffer()
1049 memset(bh->b_data + unmoved_loc - paste_size, '\0', paste_size); in leaf_paste_in_buffer()
1056 do_balance_mark_leaf_dirty(bi->tb, bh, 0); in leaf_paste_in_buffer()
1072 static int leaf_cut_entries(struct buffer_head *bh, in leaf_cut_entries() argument
1095 item = bh->b_data + ih_location(ih); in leaf_cut_entries()
1098 deh = B_I_DEH(bh, ih); in leaf_cut_entries()
1149 struct buffer_head *bh = bi->bi_bh; in leaf_cut_from_buffer() local
1155 blkh = B_BLK_HEAD(bh); in leaf_cut_from_buffer()
1159 ih = item_head(bh, cut_item_num); in leaf_cut_from_buffer()
1163 cut_size = leaf_cut_entries(bh, ih, pos_in_item, cut_size); in leaf_cut_from_buffer()
1170 set_le_ih_k_offset(ih, deh_offset(B_I_DEH(bh, ih))); in leaf_cut_from_buffer()
1182 memmove(bh->b_data + ih_location(ih), in leaf_cut_from_buffer()
1183 bh->b_data + ih_location(ih) + cut_size, in leaf_cut_from_buffer()
1195 bh->b_size); in leaf_cut_from_buffer()
1207 unmoved_loc = cut_item_num ? ih_location(ih - 1) : bh->b_size; in leaf_cut_from_buffer()
1210 memmove(bh->b_data + last_loc + cut_size, bh->b_data + last_loc, in leaf_cut_from_buffer()
1229 do_balance_mark_leaf_dirty(bi->tb, bh, 0); in leaf_cut_from_buffer()
1243 struct buffer_head *bh = bi->bi_bh; in leaf_delete_items_entirely() local
1250 RFALSE(bh == NULL, "10210: buffer is 0"); in leaf_delete_items_entirely()
1256 blkh = B_BLK_HEAD(bh); in leaf_delete_items_entirely()
1267 do_balance_mark_leaf_dirty(bi->tb, bh, 0); in leaf_delete_items_entirely()
1271 ih = item_head(bh, first); in leaf_delete_items_entirely()
1274 j = (first == 0) ? bh->b_size : ih_location(ih - 1); in leaf_delete_items_entirely()
1280 memmove(bh->b_data + last_loc + j - last_removed_loc, in leaf_delete_items_entirely()
1281 bh->b_data + last_loc, last_removed_loc - last_loc); in leaf_delete_items_entirely()
1298 do_balance_mark_leaf_dirty(bi->tb, bh, 0); in leaf_delete_items_entirely()
1326 struct buffer_head *bh = bi->bi_bh; in leaf_paste_entries() local
1331 ih = item_head(bh, item_num); in leaf_paste_entries()
1343 item = bh->b_data + ih_location(ih); in leaf_paste_entries()
1346 deh = B_I_DEH(bh, ih); in leaf_paste_entries()
1403 deh = B_I_DEH(bh, ih); in leaf_paste_entries()