Lines Matching refs:stripe_head
112 static inline int raid6_d0(struct stripe_head *sh) in raid6_d0()
134 static int raid6_idx_to_slot(int idx, struct stripe_head *sh, in raid6_idx_to_slot()
152 static int stripe_operations_active(struct stripe_head *sh) in stripe_operations_active()
159 static bool stripe_is_lowprio(struct stripe_head *sh) in stripe_is_lowprio()
166 static void raid5_wakeup_stripe_thread(struct stripe_head *sh) in raid5_wakeup_stripe_thread()
212 static void do_release_stripe(struct r5conf *conf, struct stripe_head *sh, in do_release_stripe()
297 static void __release_stripe(struct r5conf *conf, struct stripe_head *sh, in __release_stripe()
357 struct stripe_head *sh, *t; in release_stripe_list()
382 void raid5_release_stripe(struct stripe_head *sh) in raid5_release_stripe()
413 static inline void remove_hash(struct stripe_head *sh) in remove_hash()
421 static inline void insert_hash(struct r5conf *conf, struct stripe_head *sh) in insert_hash()
432 static struct stripe_head *get_free_stripe(struct r5conf *conf, int hash) in get_free_stripe()
434 struct stripe_head *sh = NULL; in get_free_stripe()
440 sh = list_entry(first, struct stripe_head, lru); in get_free_stripe()
452 static void free_stripe_pages(struct stripe_head *sh) in free_stripe_pages()
469 static int alloc_stripe_pages(struct stripe_head *sh, gfp_t gfp) in alloc_stripe_pages()
490 init_stripe_shared_pages(struct stripe_head *sh, struct r5conf *conf, int disks) in init_stripe_shared_pages()
510 static void shrink_buffers(struct stripe_head *sh) in shrink_buffers()
533 static int grow_buffers(struct stripe_head *sh, gfp_t gfp) in grow_buffers()
563 struct stripe_head *sh);
565 static void init_stripe(struct stripe_head *sh, sector_t sector, int previous) in init_stripe()
607 static struct stripe_head *__find_stripe(struct r5conf *conf, sector_t sector, in __find_stripe()
610 struct stripe_head *sh; in __find_stripe()
702 struct stripe_head *
706 struct stripe_head *sh; in raid5_get_active_stripe()
776 static bool is_full_stripe_write(struct stripe_head *sh) in is_full_stripe_write()
782 static void lock_two_stripes(struct stripe_head *sh1, struct stripe_head *sh2) in lock_two_stripes()
795 static void unlock_two_stripes(struct stripe_head *sh1, struct stripe_head *sh2) in unlock_two_stripes()
804 static bool stripe_can_batch(struct stripe_head *sh) in stripe_can_batch()
816 static void stripe_add_to_batch_list(struct r5conf *conf, struct stripe_head *sh) in stripe_add_to_batch_list()
818 struct stripe_head *head; in stripe_add_to_batch_list()
930 static int use_new_offset(struct r5conf *conf, struct stripe_head *sh) in use_new_offset()
1056 static void ops_run_io(struct stripe_head *sh, struct stripe_head_state *s) in ops_run_io()
1060 struct stripe_head *head_sh = sh; in ops_run_io()
1294 sh = list_first_entry(&sh->batch_list, struct stripe_head, in ops_run_io()
1307 struct stripe_head *sh, int no_skipcopy) in async_copy_data()
1371 struct stripe_head *sh = stripe_head_ref; in ops_complete_biofill()
1407 static void ops_run_biofill(struct stripe_head *sh) in ops_run_biofill()
1441 static void mark_target_uptodate(struct stripe_head *sh, int target) in mark_target_uptodate()
1456 struct stripe_head *sh = stripe_head_ref; in ops_complete_compute()
1479 static addr_conv_t *to_addr_conv(struct stripe_head *sh, in to_addr_conv()
1489 to_addr_offs(struct stripe_head *sh, struct raid5_percpu *percpu) in to_addr_offs()
1495 ops_run_compute5(struct stripe_head *sh, struct raid5_percpu *percpu) in ops_run_compute5()
1548 struct stripe_head *sh, in set_syndrome_sources()
1592 ops_run_compute6_1(struct stripe_head *sh, struct raid5_percpu *percpu) in ops_run_compute6_1()
1656 ops_run_compute6_2(struct stripe_head *sh, struct raid5_percpu *percpu) in ops_run_compute6_2()
1777 struct stripe_head *sh = stripe_head_ref; in ops_complete_prexor()
1791 ops_run_prexor5(struct stripe_head *sh, struct raid5_percpu *percpu, in ops_run_prexor5()
1833 ops_run_prexor6(struct stripe_head *sh, struct raid5_percpu *percpu, in ops_run_prexor6()
1855 ops_run_biodrain(struct stripe_head *sh, struct dma_async_tx_descriptor *tx) in ops_run_biodrain()
1860 struct stripe_head *head_sh = sh; in ops_run_biodrain()
1914 struct stripe_head, in ops_run_biodrain()
1928 struct stripe_head *sh = stripe_head_ref; in ops_complete_reconstruct()
1974 ops_run_reconstruct5(struct stripe_head *sh, struct raid5_percpu *percpu, in ops_run_reconstruct5()
1987 struct stripe_head *head_sh = sh; in ops_run_reconstruct5()
2043 struct stripe_head, batch_list) == head_sh; in ops_run_reconstruct5()
2065 sh = list_first_entry(&sh->batch_list, struct stripe_head, in ops_run_reconstruct5()
2072 ops_run_reconstruct6(struct stripe_head *sh, struct raid5_percpu *percpu, in ops_run_reconstruct6()
2079 struct stripe_head *head_sh = sh; in ops_run_reconstruct6()
2115 struct stripe_head, batch_list) == head_sh; in ops_run_reconstruct6()
2128 sh = list_first_entry(&sh->batch_list, struct stripe_head, in ops_run_reconstruct6()
2136 struct stripe_head *sh = stripe_head_ref; in ops_complete_check()
2146 static void ops_run_check_p(struct stripe_head *sh, struct raid5_percpu *percpu) in ops_run_check_p()
2187 static void ops_run_check_pq(struct stripe_head *sh, struct raid5_percpu *percpu, int checkp) in ops_run_check_pq()
2210 static void raid_run_ops(struct stripe_head *sh, unsigned long ops_request) in raid_run_ops()
2282 static void free_stripe(struct kmem_cache *sc, struct stripe_head *sh) in free_stripe()
2292 static struct stripe_head *alloc_stripe(struct kmem_cache *sc, gfp_t gfp, in alloc_stripe()
2295 struct stripe_head *sh; in alloc_stripe()
2334 struct stripe_head *sh; in grow_one_stripe()
2371 sizeof(struct stripe_head)+(devs-1)*sizeof(struct r5dev), in grow_stripes()
2485 struct stripe_head *osh, *nsh; in resize_stripes()
2497 sizeof(struct stripe_head)+(newsize-1)*sizeof(struct r5dev), in resize_stripes()
2515 nsh = list_entry(newstripes.next, struct stripe_head, lru); in resize_stripes()
2593 nsh = list_entry(newstripes.next, struct stripe_head, lru); in resize_stripes()
2636 struct stripe_head *sh; in drop_one_stripe()
2664 struct stripe_head *sh = bi->bi_private; in raid5_end_read_request()
2795 struct stripe_head *sh = bi->bi_private; in raid5_end_write_request()
2916 struct stripe_head *sh) in raid5_compute_sector()
3116 sector_t raid5_compute_blocknr(struct stripe_head *sh, int i, int previous) in raid5_compute_blocknr()
3131 struct stripe_head sh2; in raid5_compute_blocknr()
3293 schedule_reconstruction(struct stripe_head *sh, struct stripe_head_state *s, in schedule_reconstruction()
3406 static int add_stripe_bio(struct stripe_head *sh, struct bio *bi, int dd_idx, in add_stripe_bio()
3534 struct stripe_head *sh) in stripe_set_idx()
3550 handle_failed_stripe(struct r5conf *conf, struct stripe_head *sh, in handle_failed_stripe()
3663 handle_failed_sync(struct r5conf *conf, struct stripe_head *sh, in handle_failed_sync()
3711 static int want_replace(struct stripe_head *sh, int disk_idx) in want_replace()
3728 static int need_this_block(struct stripe_head *sh, struct stripe_head_state *s, in need_this_block()
3835 static int fetch_block(struct stripe_head *sh, struct stripe_head_state *s, in fetch_block()
3921 static void handle_stripe_fill(struct stripe_head *sh, in handle_stripe_fill()
3955 static void break_stripe_batch_list(struct stripe_head *head_sh,
3963 struct stripe_head *sh, int disks) in handle_stripe_clean_event()
3968 struct stripe_head *head_sh = sh; in handle_stripe_clean_event()
4005 struct stripe_head, in handle_stripe_clean_event()
4043 struct stripe_head, batch_list); in handle_stripe_clean_event()
4078 struct stripe_head *sh, in handle_stripe_dirtying()
4241 static void handle_parity_checks5(struct r5conf *conf, struct stripe_head *sh, in handle_parity_checks5()
4334 static void handle_parity_checks6(struct r5conf *conf, struct stripe_head *sh, in handle_parity_checks6()
4511 static void handle_stripe_expansion(struct r5conf *conf, struct stripe_head *sh) in handle_stripe_expansion()
4524 struct stripe_head *sh2; in handle_stripe_expansion()
4583 static void analyse_stripe(struct stripe_head *sh, struct stripe_head_state *s) in analyse_stripe()
4782 static int clear_batch_ready(struct stripe_head *sh) in clear_batch_ready()
4784 struct stripe_head *tmp; in clear_batch_ready()
4814 static void break_stripe_batch_list(struct stripe_head *head_sh, in break_stripe_batch_list()
4817 struct stripe_head *sh, *next; in break_stripe_batch_list()
4877 static void handle_stripe(struct stripe_head *sh) in handle_stripe()
5166 struct stripe_head *sh_src in handle_stripe()
5277 struct stripe_head *sh; in raid5_activate_delayed()
5278 sh = list_entry(l, struct stripe_head, lru); in raid5_activate_delayed()
5297 struct stripe_head *sh = list_entry(head.next, struct stripe_head, lru); in activate_bit_delay()
5514 static struct stripe_head *__get_priority_stripe(struct r5conf *conf, int group) in __get_priority_stripe()
5516 struct stripe_head *sh, *tmp; in __get_priority_stripe()
5616 struct stripe_head *sh; in raid5_unplug()
5625 sh = list_first_entry(&cb->list, struct stripe_head, lru); in raid5_unplug()
5652 struct stripe_head *sh) in release_stripe_plug()
5683 struct stripe_head *sh; in make_discard_request()
5772 struct stripe_head *sh; in raid5_make_request()
5953 struct stripe_head *sh; in reshape_request()
6163 sh = list_entry(stripes.next, struct stripe_head, lru); in reshape_request()
6214 struct stripe_head *sh; in raid5_sync_request()
6317 struct stripe_head *sh; in retry_aligned_read()
6373 struct stripe_head *batch[MAX_STRIPE_BATCH], *sh; in handle_active_stripes()
7362 memory = conf->min_nr_stripes * (sizeof(struct stripe_head) + in setup_conf()