Lines Matching defs:sh
187 static inline int raid6_d0(struct stripe_head *sh) in raid6_d0()
209 static int raid6_idx_to_slot(int idx, struct stripe_head *sh, in raid6_idx_to_slot()
238 static int stripe_operations_active(struct stripe_head *sh) in stripe_operations_active()
245 static void raid5_wakeup_stripe_thread(struct stripe_head *sh) in raid5_wakeup_stripe_thread()
288 static void do_release_stripe(struct r5conf *conf, struct stripe_head *sh, in do_release_stripe()
323 static void __release_stripe(struct r5conf *conf, struct stripe_head *sh, in __release_stripe()
383 struct stripe_head *sh; in release_stripe_list() local
410 void raid5_release_stripe(struct stripe_head *sh) in raid5_release_stripe()
443 static inline void remove_hash(struct stripe_head *sh) in remove_hash()
451 static inline void insert_hash(struct r5conf *conf, struct stripe_head *sh) in insert_hash()
464 struct stripe_head *sh = NULL; in get_free_stripe() local
481 static void shrink_buffers(struct stripe_head *sh) in shrink_buffers()
497 static int grow_buffers(struct stripe_head *sh, gfp_t gfp) in grow_buffers()
518 static void init_stripe(struct stripe_head *sh, sector_t sector, int previous) in init_stripe()
563 struct stripe_head *sh; in __find_stripe() local
659 struct stripe_head *sh; in raid5_get_active_stripe() local
720 static bool is_full_stripe_write(struct stripe_head *sh) in is_full_stripe_write()
744 static bool stripe_can_batch(struct stripe_head *sh) in stripe_can_batch()
756 static void stripe_add_to_batch_list(struct r5conf *conf, struct stripe_head *sh) in stripe_add_to_batch_list()
865 static int use_new_offset(struct r5conf *conf, struct stripe_head *sh) in use_new_offset()
888 static void ops_run_io(struct stripe_head *sh, struct stripe_head_state *s) in ops_run_io()
1113 struct stripe_head *sh) in async_copy_data()
1175 struct stripe_head *sh = stripe_head_ref; in ops_complete_biofill() local
1214 static void ops_run_biofill(struct stripe_head *sh) in ops_run_biofill()
1246 static void mark_target_uptodate(struct stripe_head *sh, int target) in mark_target_uptodate()
1261 struct stripe_head *sh = stripe_head_ref; in ops_complete_compute() local
1278 static addr_conv_t *to_addr_conv(struct stripe_head *sh, in to_addr_conv()
1297 ops_run_compute5(struct stripe_head *sh, struct raid5_percpu *percpu) in ops_run_compute5()
1341 struct stripe_head *sh, in set_syndrome_sources()
1373 ops_run_compute6_1(struct stripe_head *sh, struct raid5_percpu *percpu) in ops_run_compute6_1()
1431 ops_run_compute6_2(struct stripe_head *sh, struct raid5_percpu *percpu) in ops_run_compute6_2()
1540 struct stripe_head *sh = stripe_head_ref; in ops_complete_prexor() local
1547 ops_run_prexor5(struct stripe_head *sh, struct raid5_percpu *percpu, in ops_run_prexor5()
1577 ops_run_prexor6(struct stripe_head *sh, struct raid5_percpu *percpu, in ops_run_prexor6()
1597 ops_run_biodrain(struct stripe_head *sh, struct dma_async_tx_descriptor *tx) in ops_run_biodrain()
1661 struct stripe_head *sh = stripe_head_ref; in ops_complete_reconstruct() local
1707 ops_run_reconstruct5(struct stripe_head *sh, struct raid5_percpu *percpu, in ops_run_reconstruct5()
1793 ops_run_reconstruct6(struct stripe_head *sh, struct raid5_percpu *percpu, in ops_run_reconstruct6()
1854 struct stripe_head *sh = stripe_head_ref; in ops_complete_check() local
1864 static void ops_run_check_p(struct stripe_head *sh, struct raid5_percpu *percpu) in ops_run_check_p()
1899 static void ops_run_check_pq(struct stripe_head *sh, struct raid5_percpu *percpu, int checkp) in ops_run_check_pq()
1920 static void raid_run_ops(struct stripe_head *sh, unsigned long ops_request) in raid_run_ops()
1991 struct stripe_head *sh; in alloc_stripe() local
2005 struct stripe_head *sh; in grow_one_stripe() local
2270 struct stripe_head *sh; in drop_one_stripe() local
2298 struct stripe_head *sh = bi->bi_private; in raid5_end_read_request() local
2422 struct stripe_head *sh = bi->bi_private; in raid5_end_write_request() local
2497 static void raid5_build_block(struct stripe_head *sh, int i, int previous) in raid5_build_block()
2547 struct stripe_head *sh) in raid5_compute_sector()
2747 sector_t raid5_compute_blocknr(struct stripe_head *sh, int i, int previous) in raid5_compute_blocknr()
2868 schedule_reconstruction(struct stripe_head *sh, struct stripe_head_state *s, in schedule_reconstruction()
2962 static int add_stripe_bio(struct stripe_head *sh, struct bio *bi, int dd_idx, in add_stripe_bio()
3066 struct stripe_head *sh) in stripe_set_idx()
3082 handle_failed_stripe(struct r5conf *conf, struct stripe_head *sh, in handle_failed_stripe()
3203 handle_failed_sync(struct r5conf *conf, struct stripe_head *sh, in handle_failed_sync()
3249 static int want_replace(struct stripe_head *sh, int disk_idx) in want_replace()
3272 static int need_this_block(struct stripe_head *sh, struct stripe_head_state *s, in need_this_block()
3363 static int fetch_block(struct stripe_head *sh, struct stripe_head_state *s, in fetch_block()
3449 static void handle_stripe_fill(struct stripe_head *sh, in handle_stripe_fill()
3475 struct stripe_head *sh, int disks, struct bio_list *return_bi) in handle_stripe_clean_event()
3579 struct stripe_head *sh, in handle_stripe_dirtying()
3710 static void handle_parity_checks5(struct r5conf *conf, struct stripe_head *sh, in handle_parity_checks5()
3798 static void handle_parity_checks6(struct r5conf *conf, struct stripe_head *sh, in handle_parity_checks6()
3970 static void handle_stripe_expansion(struct r5conf *conf, struct stripe_head *sh) in handle_stripe_expansion()
4041 static void analyse_stripe(struct stripe_head *sh, struct stripe_head_state *s) in analyse_stripe()
4231 static int clear_batch_ready(struct stripe_head *sh) in clear_batch_ready()
4270 struct stripe_head *sh, *next; in break_stripe_batch_list() local
4329 static void handle_stripe(struct stripe_head *sh) in handle_stripe()
4684 struct stripe_head *sh; in raid5_activate_delayed() local
4704 struct stripe_head *sh = list_entry(head.next, struct stripe_head, lru); in activate_bit_delay() local
4941 struct stripe_head *sh = NULL, *tmp; in __get_priority_stripe() local
5026 struct stripe_head *sh; in raid5_unplug() local
5062 struct stripe_head *sh) in release_stripe_plug()
5093 struct stripe_head *sh; in make_discard_request() local
5187 struct stripe_head *sh; in make_request() local
5385 struct stripe_head *sh; in reshape_request() local
5627 struct stripe_head *sh; in sync_request() local
5728 struct stripe_head *sh; in retry_aligned_read() local
5786 struct stripe_head *batch[MAX_STRIPE_BATCH], *sh; in handle_active_stripes() local