Lines Matching refs:stripe_head

188 static inline int raid6_d0(struct stripe_head *sh)  in raid6_d0()
210 static int raid6_idx_to_slot(int idx, struct stripe_head *sh, in raid6_idx_to_slot()
243 static int stripe_operations_active(struct stripe_head *sh) in stripe_operations_active()
250 static void raid5_wakeup_stripe_thread(struct stripe_head *sh) in raid5_wakeup_stripe_thread()
293 static void do_release_stripe(struct r5conf *conf, struct stripe_head *sh, in do_release_stripe()
328 static void __release_stripe(struct r5conf *conf, struct stripe_head *sh, in __release_stripe()
386 struct stripe_head *sh; in release_stripe_list()
395 sh = llist_entry(head, struct stripe_head, release_list); in release_stripe_list()
413 static void release_stripe(struct stripe_head *sh) in release_stripe()
446 static inline void remove_hash(struct stripe_head *sh) in remove_hash()
454 static inline void insert_hash(struct r5conf *conf, struct stripe_head *sh) in insert_hash()
465 static struct stripe_head *get_free_stripe(struct r5conf *conf, int hash) in get_free_stripe()
467 struct stripe_head *sh = NULL; in get_free_stripe()
473 sh = list_entry(first, struct stripe_head, lru); in get_free_stripe()
484 static void shrink_buffers(struct stripe_head *sh) in shrink_buffers()
500 static int grow_buffers(struct stripe_head *sh, gfp_t gfp) in grow_buffers()
517 static void raid5_build_block(struct stripe_head *sh, int i, int previous);
519 struct stripe_head *sh);
521 static void init_stripe(struct stripe_head *sh, sector_t sector, int previous) in init_stripe()
563 static struct stripe_head *__find_stripe(struct r5conf *conf, sector_t sector, in __find_stripe()
566 struct stripe_head *sh; in __find_stripe()
658 static struct stripe_head *
662 struct stripe_head *sh; in get_active_stripe()
723 static bool is_full_stripe_write(struct stripe_head *sh) in is_full_stripe_write()
729 static void lock_two_stripes(struct stripe_head *sh1, struct stripe_head *sh2) in lock_two_stripes()
741 static void unlock_two_stripes(struct stripe_head *sh1, struct stripe_head *sh2) in unlock_two_stripes()
749 static bool stripe_can_batch(struct stripe_head *sh) in stripe_can_batch()
757 static void stripe_add_to_batch_list(struct r5conf *conf, struct stripe_head *sh) in stripe_add_to_batch_list()
759 struct stripe_head *head; in stripe_add_to_batch_list()
860 static int use_new_offset(struct r5conf *conf, struct stripe_head *sh) in use_new_offset()
883 static void ops_run_io(struct stripe_head *sh, struct stripe_head_state *s) in ops_run_io()
887 struct stripe_head *head_sh = sh; in ops_run_io()
1096 sh = list_first_entry(&sh->batch_list, struct stripe_head, in ops_run_io()
1106 struct stripe_head *sh) in async_copy_data()
1168 struct stripe_head *sh = stripe_head_ref; in ops_complete_biofill()
1209 static void ops_run_biofill(struct stripe_head *sh) in ops_run_biofill()
1241 static void mark_target_uptodate(struct stripe_head *sh, int target) in mark_target_uptodate()
1256 struct stripe_head *sh = stripe_head_ref; in ops_complete_compute()
1273 static addr_conv_t *to_addr_conv(struct stripe_head *sh, in to_addr_conv()
1292 ops_run_compute5(struct stripe_head *sh, struct raid5_percpu *percpu) in ops_run_compute5()
1336 struct stripe_head *sh, in set_syndrome_sources()
1368 ops_run_compute6_1(struct stripe_head *sh, struct raid5_percpu *percpu) in ops_run_compute6_1()
1426 ops_run_compute6_2(struct stripe_head *sh, struct raid5_percpu *percpu) in ops_run_compute6_2()
1535 struct stripe_head *sh = stripe_head_ref; in ops_complete_prexor()
1542 ops_run_prexor5(struct stripe_head *sh, struct raid5_percpu *percpu, in ops_run_prexor5()
1572 ops_run_prexor6(struct stripe_head *sh, struct raid5_percpu *percpu, in ops_run_prexor6()
1592 ops_run_biodrain(struct stripe_head *sh, struct dma_async_tx_descriptor *tx) in ops_run_biodrain()
1596 struct stripe_head *head_sh = sh; in ops_run_biodrain()
1642 struct stripe_head, in ops_run_biodrain()
1656 struct stripe_head *sh = stripe_head_ref; in ops_complete_reconstruct()
1699 ops_run_reconstruct5(struct stripe_head *sh, struct raid5_percpu *percpu, in ops_run_reconstruct5()
1710 struct stripe_head *head_sh = sh; in ops_run_reconstruct5()
1758 struct stripe_head, batch_list) == head_sh; in ops_run_reconstruct5()
1778 sh = list_first_entry(&sh->batch_list, struct stripe_head, in ops_run_reconstruct5()
1785 ops_run_reconstruct6(struct stripe_head *sh, struct raid5_percpu *percpu, in ops_run_reconstruct6()
1791 struct stripe_head *head_sh = sh; in ops_run_reconstruct6()
1826 struct stripe_head, batch_list) == head_sh; in ops_run_reconstruct6()
1838 sh = list_first_entry(&sh->batch_list, struct stripe_head, in ops_run_reconstruct6()
1846 struct stripe_head *sh = stripe_head_ref; in ops_complete_check()
1856 static void ops_run_check_p(struct stripe_head *sh, struct raid5_percpu *percpu) in ops_run_check_p()
1891 static void ops_run_check_pq(struct stripe_head *sh, struct raid5_percpu *percpu, int checkp) in ops_run_check_pq()
1912 static void raid_run_ops(struct stripe_head *sh, unsigned long ops_request) in raid_run_ops()
1981 static struct stripe_head *alloc_stripe(struct kmem_cache *sc, gfp_t gfp) in alloc_stripe()
1983 struct stripe_head *sh; in alloc_stripe()
1997 struct stripe_head *sh; in grow_one_stripe()
2035 sizeof(struct stripe_head)+(devs-1)*sizeof(struct r5dev), in grow_stripes()
2144 struct stripe_head *osh, *nsh; in resize_stripes()
2161 sizeof(struct stripe_head)+(newsize-1)*sizeof(struct r5dev), in resize_stripes()
2180 nsh = list_entry(newstripes.next, struct stripe_head, lru); in resize_stripes()
2235 nsh = list_entry(newstripes.next, struct stripe_head, lru); in resize_stripes()
2259 struct stripe_head *sh; in drop_one_stripe()
2288 struct stripe_head *sh = bi->bi_private; in raid5_end_read_request()
2411 struct stripe_head *sh = bi->bi_private; in raid5_end_write_request()
2487 static sector_t compute_blocknr(struct stripe_head *sh, int i, int previous);
2489 static void raid5_build_block(struct stripe_head *sh, int i, int previous) in raid5_build_block()
2538 struct stripe_head *sh) in raid5_compute_sector()
2738 static sector_t compute_blocknr(struct stripe_head *sh, int i, int previous) in compute_blocknr()
2753 struct stripe_head sh2; in compute_blocknr()
2859 schedule_reconstruction(struct stripe_head *sh, struct stripe_head_state *s, in schedule_reconstruction()
2953 static int add_stripe_bio(struct stripe_head *sh, struct bio *bi, int dd_idx, in add_stripe_bio()
3057 struct stripe_head *sh) in stripe_set_idx()
3073 handle_failed_stripe(struct r5conf *conf, struct stripe_head *sh, in handle_failed_stripe()
3188 handle_failed_sync(struct r5conf *conf, struct stripe_head *sh, in handle_failed_sync()
3234 static int want_replace(struct stripe_head *sh, int disk_idx) in want_replace()
3257 static int need_this_block(struct stripe_head *sh, struct stripe_head_state *s, in need_this_block()
3347 static int fetch_block(struct stripe_head *sh, struct stripe_head_state *s, in fetch_block()
3422 static void handle_stripe_fill(struct stripe_head *sh, in handle_stripe_fill()
3440 static void break_stripe_batch_list(struct stripe_head *head_sh,
3448 struct stripe_head *sh, int disks, struct bio **return_bi) in handle_stripe_clean_event()
3453 struct stripe_head *head_sh = sh; in handle_stripe_clean_event()
3493 struct stripe_head, in handle_stripe_clean_event()
3530 struct stripe_head, batch_list); in handle_stripe_clean_event()
3550 struct stripe_head *sh, in handle_stripe_dirtying()
3681 static void handle_parity_checks5(struct r5conf *conf, struct stripe_head *sh, in handle_parity_checks5()
3769 static void handle_parity_checks6(struct r5conf *conf, struct stripe_head *sh, in handle_parity_checks6()
3933 static void handle_stripe_expansion(struct r5conf *conf, struct stripe_head *sh) in handle_stripe_expansion()
3946 struct stripe_head *sh2; in handle_stripe_expansion()
4004 static void analyse_stripe(struct stripe_head *sh, struct stripe_head_state *s) in analyse_stripe()
4185 static int clear_batch_ready(struct stripe_head *sh) in clear_batch_ready()
4191 struct stripe_head *tmp; in clear_batch_ready()
4221 static void break_stripe_batch_list(struct stripe_head *head_sh, in break_stripe_batch_list()
4224 struct stripe_head *sh, *next; in break_stripe_batch_list()
4282 static void handle_stripe(struct stripe_head *sh) in handle_stripe()
4513 struct stripe_head *sh_src in handle_stripe()
4626 struct stripe_head *sh; in raid5_activate_delayed()
4627 sh = list_entry(l, struct stripe_head, lru); in raid5_activate_delayed()
4646 struct stripe_head *sh = list_entry(head.next, struct stripe_head, lru); in activate_bit_delay()
4906 static struct stripe_head *__get_priority_stripe(struct r5conf *conf, int group) in __get_priority_stripe()
4908 struct stripe_head *sh = NULL, *tmp; in __get_priority_stripe()
4993 struct stripe_head *sh; in raid5_unplug()
5002 sh = list_first_entry(&cb->list, struct stripe_head, lru); in raid5_unplug()
5029 struct stripe_head *sh) in release_stripe_plug()
5060 struct stripe_head *sh; in make_discard_request()
5154 struct stripe_head *sh; in make_request()
5340 struct stripe_head *sh; in reshape_request()
5531 sh = list_entry(stripes.next, struct stripe_head, lru); in reshape_request()
5570 struct stripe_head *sh; in sync_request()
5671 struct stripe_head *sh; in retry_aligned_read()
5729 struct stripe_head *batch[MAX_STRIPE_BATCH], *sh; in handle_active_stripes()
6574 memory = conf->min_nr_stripes * (sizeof(struct stripe_head) + in setup_conf()