Lines Matching defs:sh
120 static inline int raid6_d0(struct stripe_head *sh) in raid6_d0()
142 static int raid6_idx_to_slot(int idx, struct stripe_head *sh, in raid6_idx_to_slot()
160 static int stripe_operations_active(struct stripe_head *sh) in stripe_operations_active()
167 static bool stripe_is_lowprio(struct stripe_head *sh) in stripe_is_lowprio()
174 static void raid5_wakeup_stripe_thread(struct stripe_head *sh) in raid5_wakeup_stripe_thread()
221 static void do_release_stripe(struct r5conf *conf, struct stripe_head *sh, in do_release_stripe()
307 static void __release_stripe(struct r5conf *conf, struct stripe_head *sh, in __release_stripe()
368 struct stripe_head *sh, *t; in release_stripe_list() local
393 void raid5_release_stripe(struct stripe_head *sh) in raid5_release_stripe()
424 static inline void remove_hash(struct stripe_head *sh) in remove_hash()
432 static inline void insert_hash(struct r5conf *conf, struct stripe_head *sh) in insert_hash()
445 struct stripe_head *sh = NULL; in get_free_stripe() local
463 static void free_stripe_pages(struct stripe_head *sh) in free_stripe_pages()
480 static int alloc_stripe_pages(struct stripe_head *sh, gfp_t gfp) in alloc_stripe_pages()
501 init_stripe_shared_pages(struct stripe_head *sh, struct r5conf *conf, int disks) in init_stripe_shared_pages()
521 static void shrink_buffers(struct stripe_head *sh) in shrink_buffers()
544 static int grow_buffers(struct stripe_head *sh, gfp_t gfp) in grow_buffers()
576 static void init_stripe(struct stripe_head *sh, sector_t sector, int previous) in init_stripe()
621 struct stripe_head *sh; in __find_stripe() local
635 struct stripe_head *sh; in find_get_stripe() local
806 struct stripe_head *sh; in raid5_get_active_stripe() local
873 static bool is_full_stripe_write(struct stripe_head *sh) in is_full_stripe_write()
901 static bool stripe_can_batch(struct stripe_head *sh) in stripe_can_batch()
914 struct stripe_head *sh, struct stripe_head *last_sh) in stripe_add_to_batch_list()
1011 static int use_new_offset(struct r5conf *conf, struct stripe_head *sh) in use_new_offset()
1138 static void ops_run_io(struct stripe_head *sh, struct stripe_head_state *s) in ops_run_io()
1378 struct stripe_head *sh, int no_skipcopy) in async_copy_data()
1442 struct stripe_head *sh = stripe_head_ref; in ops_complete_biofill() local
1478 static void ops_run_biofill(struct stripe_head *sh) in ops_run_biofill()
1512 static void mark_target_uptodate(struct stripe_head *sh, int target) in mark_target_uptodate()
1527 struct stripe_head *sh = stripe_head_ref; in ops_complete_compute() local
1550 static addr_conv_t *to_addr_conv(struct stripe_head *sh, in to_addr_conv()
1560 to_addr_offs(struct stripe_head *sh, struct raid5_percpu *percpu) in to_addr_offs()
1566 ops_run_compute5(struct stripe_head *sh, struct raid5_percpu *percpu) in ops_run_compute5()
1619 struct stripe_head *sh, in set_syndrome_sources()
1663 ops_run_compute6_1(struct stripe_head *sh, struct raid5_percpu *percpu) in ops_run_compute6_1()
1727 ops_run_compute6_2(struct stripe_head *sh, struct raid5_percpu *percpu) in ops_run_compute6_2()
1848 struct stripe_head *sh = stripe_head_ref; in ops_complete_prexor() local
1862 ops_run_prexor5(struct stripe_head *sh, struct raid5_percpu *percpu, in ops_run_prexor5()
1904 ops_run_prexor6(struct stripe_head *sh, struct raid5_percpu *percpu, in ops_run_prexor6()
1926 ops_run_biodrain(struct stripe_head *sh, struct dma_async_tx_descriptor *tx) in ops_run_biodrain()
1999 struct stripe_head *sh = stripe_head_ref; in ops_complete_reconstruct() local
2045 ops_run_reconstruct5(struct stripe_head *sh, struct raid5_percpu *percpu, in ops_run_reconstruct5()
2143 ops_run_reconstruct6(struct stripe_head *sh, struct raid5_percpu *percpu, in ops_run_reconstruct6()
2207 struct stripe_head *sh = stripe_head_ref; in ops_complete_check() local
2217 static void ops_run_check_p(struct stripe_head *sh, struct raid5_percpu *percpu) in ops_run_check_p()
2258 static void ops_run_check_pq(struct stripe_head *sh, struct raid5_percpu *percpu, int checkp) in ops_run_check_pq()
2281 static void raid_run_ops(struct stripe_head *sh, unsigned long ops_request) in raid_run_ops()
2353 static void free_stripe(struct kmem_cache *sc, struct stripe_head *sh) in free_stripe()
2366 struct stripe_head *sh; in alloc_stripe() local
2398 struct stripe_head *sh; in grow_one_stripe() local
2698 struct stripe_head *sh; in drop_one_stripe() local
2726 struct stripe_head *sh = bi->bi_private; in raid5_end_read_request() local
2854 struct stripe_head *sh = bi->bi_private; in raid5_end_write_request() local
2970 struct stripe_head *sh) in raid5_compute_sector()
3170 sector_t raid5_compute_blocknr(struct stripe_head *sh, int i, int previous) in raid5_compute_blocknr()
3347 schedule_reconstruction(struct stripe_head *sh, struct stripe_head_state *s, in schedule_reconstruction()
3455 static bool stripe_bio_overlaps(struct stripe_head *sh, struct bio *bi, in stripe_bio_overlaps()
3515 static void __add_stripe_bio(struct stripe_head *sh, struct bio *bi, in __add_stripe_bio()
3593 static bool add_stripe_bio(struct stripe_head *sh, struct bio *bi, in add_stripe_bio()
3612 struct stripe_head *sh) in stripe_set_idx()
3628 handle_failed_stripe(struct r5conf *conf, struct stripe_head *sh, in handle_failed_stripe()
3739 handle_failed_sync(struct r5conf *conf, struct stripe_head *sh, in handle_failed_sync()
3787 static int want_replace(struct stripe_head *sh, int disk_idx) in want_replace()
3802 static int need_this_block(struct stripe_head *sh, struct stripe_head_state *s, in need_this_block()
3909 static int fetch_block(struct stripe_head *sh, struct stripe_head_state *s, in fetch_block()
3995 static void handle_stripe_fill(struct stripe_head *sh, in handle_stripe_fill()
4037 struct stripe_head *sh, int disks) in handle_stripe_clean_event()
4152 struct stripe_head *sh, in handle_stripe_dirtying()
4315 static void handle_parity_checks5(struct r5conf *conf, struct stripe_head *sh, in handle_parity_checks5()
4408 static void handle_parity_checks6(struct r5conf *conf, struct stripe_head *sh, in handle_parity_checks6()
4585 static void handle_stripe_expansion(struct r5conf *conf, struct stripe_head *sh) in handle_stripe_expansion()
4658 static void analyse_stripe(struct stripe_head *sh, struct stripe_head_state *s) in analyse_stripe()
4854 static int clear_batch_ready(struct stripe_head *sh) in clear_batch_ready()
4889 struct stripe_head *sh, *next; in break_stripe_batch_list() local
4949 static void handle_stripe(struct stripe_head *sh) in handle_stripe()
5352 struct stripe_head *sh; in raid5_activate_delayed() local
5372 struct stripe_head *sh = list_entry(head.next, struct stripe_head, lru); in activate_bit_delay() local
5574 struct stripe_head *sh, *tmp; in __get_priority_stripe() local
5674 struct stripe_head *sh; in raid5_unplug() local
5710 struct stripe_head *sh) in release_stripe_plug()
5741 struct stripe_head *sh; in make_discard_request() local
5843 struct stripe_head *sh) in stripe_ahead_of_reshape()
5870 struct stripe_request_ctx *ctx, struct stripe_head *sh, in add_all_stripe_bios()
5924 struct stripe_head *sh; in make_stripe_request() local
6041 struct stripe_head sh; in raid5_bio_lowest_chunk_sector() local
6205 struct stripe_head *sh; in reshape_request() local
6468 struct stripe_head *sh; in raid5_sync_request() local
6570 struct stripe_head *sh; in retry_aligned_read() local
6625 struct stripe_head *batch[MAX_STRIPE_BATCH], *sh; in handle_active_stripes() local