Lines Matching refs:bh_cache
149 bh = sh->bh_cache[i]; in shrink_buffers()
152 sh->bh_cache[i] = NULL; in shrink_buffers()
178 sh->bh_cache[i] = bh; in grow_buffers()
207 buffer_locked(sh->bh_cache[i])) { in init_stripe()
211 buffer_locked(sh->bh_cache[i])); in init_stripe()
214 clear_bit(BH_Uptodate, &sh->bh_cache[i]->b_state); in init_stripe()
386 if (bh == sh->bh_cache[i]) in raid5_end_read_request()
444 if (bh == sh->bh_cache[i]) in raid5_end_write_request()
467 struct buffer_head *bh = sh->bh_cache[i]; in raid5_build_block()
669 memset(sh->bh_cache[dd_idx]->b_data, 0, sh->size); in compute_block()
670 bh_ptr[0] = sh->bh_cache[dd_idx]; in compute_block()
675 bh = sh->bh_cache[i]; in compute_block()
685 set_bit(BH_Uptodate, &sh->bh_cache[dd_idx]->b_state); in compute_block()
699 bh_ptr[0] = sh->bh_cache[pd_idx]; in compute_parity()
702 if (!buffer_uptodate(sh->bh_cache[pd_idx])) in compute_parity()
708 buffer_uptodate(sh->bh_cache[i])) { in compute_parity()
709 bh_ptr[count++] = sh->bh_cache[i]; in compute_parity()
719 memset(sh->bh_cache[pd_idx]->b_data, 0, sh->size); in compute_parity()
738 struct buffer_head *bh = sh->bh_cache[i]; in compute_parity()
753 bh_ptr[count++] = sh->bh_cache[i]; in compute_parity()
760 bh_ptr[count++] = sh->bh_cache[i]; in compute_parity()
768 mark_buffer_uptodate(sh->bh_cache[pd_idx], 1); in compute_parity()
769 set_bit(BH_Lock, &sh->bh_cache[pd_idx]->b_state); in compute_parity()
771 mark_buffer_uptodate(sh->bh_cache[pd_idx], 0); in compute_parity()
845 bh = sh->bh_cache[i]; in handle_stripe()
924 bh = sh->bh_cache[sh->pd_idx]; in handle_stripe()
932 bh = sh->bh_cache[i]; in handle_stripe()
955 bh = sh->bh_cache[i]; in handle_stripe()
973 sh->bh_page[i] = sh->bh_cache[i]->b_page; in handle_stripe()
974 sh->bh_cache[i]->b_page = sh->bh_read[i]->b_page; in handle_stripe()
975 sh->bh_cache[i]->b_data = sh->bh_read[i]->b_data; in handle_stripe()
992 bh = sh->bh_cache[i]; in handle_stripe()
1015 bh = sh->bh_cache[i]; in handle_stripe()
1034 bh = sh->bh_cache[i]; in handle_stripe()
1056 if (buffer_locked(sh->bh_cache[i])) { in handle_stripe()
1084 bh = sh->bh_cache[sh->pd_idx]; in handle_stripe()
1096 if (!buffer_uptodate(sh->bh_cache[failed_num])) { in handle_stripe()
1104 bh = sh->bh_cache[failed_num]; in handle_stripe()
1136 struct buffer_head *bh = sh->bh_cache[i]; in handle_stripe()
1666 if (sh->bh_cache[i]) in print_sh()
1667 printk("(cache%d: %p %ld) ", i, sh->bh_cache[i], sh->bh_cache[i]->b_state); in print_sh()