Lines Matching refs:stripe_head

112 static inline int raid6_d0(struct stripe_head *sh)
134 static int raid6_idx_to_slot(int idx, struct stripe_head *sh,
152 static int stripe_operations_active(struct stripe_head *sh)
159 static bool stripe_is_lowprio(struct stripe_head *sh)
166 static void raid5_wakeup_stripe_thread(struct stripe_head *sh)
212 static void do_release_stripe(struct r5conf *conf, struct stripe_head *sh,
297 static void __release_stripe(struct r5conf *conf, struct stripe_head *sh,
357 struct stripe_head *sh, *t;
382 void raid5_release_stripe(struct stripe_head *sh)
413 static inline void remove_hash(struct stripe_head *sh)
421 static inline void insert_hash(struct r5conf *conf, struct stripe_head *sh)
432 static struct stripe_head *get_free_stripe(struct r5conf *conf, int hash)
434 struct stripe_head *sh = NULL;
440 sh = list_entry(first, struct stripe_head, lru);
452 static void free_stripe_pages(struct stripe_head *sh)
469 static int alloc_stripe_pages(struct stripe_head *sh, gfp_t gfp)
490 init_stripe_shared_pages(struct stripe_head *sh, struct r5conf *conf, int disks)
510 static void shrink_buffers(struct stripe_head *sh)
533 static int grow_buffers(struct stripe_head *sh, gfp_t gfp)
563 struct stripe_head *sh);
565 static void init_stripe(struct stripe_head *sh, sector_t sector, int previous)
607 static struct stripe_head *__find_stripe(struct r5conf *conf, sector_t sector,
610 struct stripe_head *sh;
702 struct stripe_head *
706 struct stripe_head *sh;
776 static bool is_full_stripe_write(struct stripe_head *sh)
782 static void lock_two_stripes(struct stripe_head *sh1, struct stripe_head *sh2)
795 static void unlock_two_stripes(struct stripe_head *sh1, struct stripe_head *sh2)
804 static bool stripe_can_batch(struct stripe_head *sh)
816 static void stripe_add_to_batch_list(struct r5conf *conf, struct stripe_head *sh)
818 struct stripe_head *head;
928 * in this stripe_head.
930 static int use_new_offset(struct r5conf *conf, struct stripe_head *sh)
1057 static void ops_run_io(struct stripe_head *sh, struct stripe_head_state *s)
1061 struct stripe_head *head_sh = sh;
1295 sh = list_first_entry(&sh->batch_list, struct stripe_head,
1308 struct stripe_head *sh, int no_skipcopy)
1372 struct stripe_head *sh = stripe_head_ref;
1408 static void ops_run_biofill(struct stripe_head *sh)
1442 static void mark_target_uptodate(struct stripe_head *sh, int target)
1457 struct stripe_head *sh = stripe_head_ref;
1480 static addr_conv_t *to_addr_conv(struct stripe_head *sh,
1490 to_addr_offs(struct stripe_head *sh, struct raid5_percpu *percpu)
1496 ops_run_compute5(struct stripe_head *sh, struct raid5_percpu *percpu)
1540 * @sh - stripe_head to parse
1549 struct stripe_head *sh,
1593 ops_run_compute6_1(struct stripe_head *sh, struct raid5_percpu *percpu)
1657 ops_run_compute6_2(struct stripe_head *sh, struct raid5_percpu *percpu)
1778 struct stripe_head *sh = stripe_head_ref;
1792 ops_run_prexor5(struct stripe_head *sh, struct raid5_percpu *percpu,
1834 ops_run_prexor6(struct stripe_head *sh, struct raid5_percpu *percpu,
1856 ops_run_biodrain(struct stripe_head *sh, struct dma_async_tx_descriptor *tx)
1861 struct stripe_head *head_sh = sh;
1915 struct stripe_head,
1929 struct stripe_head *sh = stripe_head_ref;
1975 ops_run_reconstruct5(struct stripe_head *sh, struct raid5_percpu *percpu,
1988 struct stripe_head *head_sh = sh;
2044 struct stripe_head, batch_list) == head_sh;
2066 sh = list_first_entry(&sh->batch_list, struct stripe_head,
2073 ops_run_reconstruct6(struct stripe_head *sh, struct raid5_percpu *percpu,
2080 struct stripe_head *head_sh = sh;
2116 struct stripe_head, batch_list) == head_sh;
2129 sh = list_first_entry(&sh->batch_list, struct stripe_head,
2137 struct stripe_head *sh = stripe_head_ref;
2147 static void ops_run_check_p(struct stripe_head *sh, struct raid5_percpu *percpu)
2188 static void ops_run_check_pq(struct stripe_head *sh, struct raid5_percpu *percpu, int checkp)
2211 static void raid_run_ops(struct stripe_head *sh, unsigned long ops_request)
2283 static void free_stripe(struct kmem_cache *sc, struct stripe_head *sh)
2293 static struct stripe_head *alloc_stripe(struct kmem_cache *sc, gfp_t gfp,
2296 struct stripe_head *sh;
2335 struct stripe_head *sh;
2372 sizeof(struct stripe_head)+(devs-1)*sizeof(struct r5dev),
2480 * As each stripe_head is processed the new one is released into
2486 struct stripe_head *osh, *nsh;
2498 sizeof(struct stripe_head)+(newsize-1)*sizeof(struct r5dev),
2516 nsh = list_entry(newstripes.next, struct stripe_head, lru);
2594 nsh = list_entry(newstripes.next, struct stripe_head, lru);
2637 struct stripe_head *sh;
2665 struct stripe_head *sh = bi->bi_private;
2796 struct stripe_head *sh = bi->bi_private;
2914 struct stripe_head *sh)
3114 sector_t raid5_compute_blocknr(struct stripe_head *sh, int i, int previous)
3129 struct stripe_head sh2;
3291 schedule_reconstruction(struct stripe_head *sh, struct stripe_head_state *s,
3404 static int add_stripe_bio(struct stripe_head *sh, struct bio *bi, int dd_idx,
3437 * stripe are allowed because for a single stripe_head we can
3532 struct stripe_head *sh)
3548 handle_failed_stripe(struct r5conf *conf, struct stripe_head *sh,
3661 handle_failed_sync(struct r5conf *conf, struct stripe_head *sh,
3709 static int want_replace(struct stripe_head *sh, int disk_idx)
3726 static int need_this_block(struct stripe_head *sh, struct stripe_head_state *s,
3833 static int fetch_block(struct stripe_head *sh, struct stripe_head_state *s,
3919 static void handle_stripe_fill(struct stripe_head *sh,
3953 static void break_stripe_batch_list(struct stripe_head *head_sh,
3961 struct stripe_head *sh, int disks)
3966 struct stripe_head *head_sh = sh;
4003 struct stripe_head,
4041 struct stripe_head, batch_list);
4076 struct stripe_head *sh,
4239 static void handle_parity_checks5(struct r5conf *conf, struct stripe_head *sh,
4332 static void handle_parity_checks6(struct r5conf *conf, struct stripe_head *sh,
4509 static void handle_stripe_expansion(struct r5conf *conf, struct stripe_head *sh)
4522 struct stripe_head *sh2;
4581 static void analyse_stripe(struct stripe_head *sh, struct stripe_head_state *s)
4780 static int clear_batch_ready(struct stripe_head *sh)
4782 struct stripe_head *tmp;
4812 static void break_stripe_batch_list(struct stripe_head *head_sh,
4815 struct stripe_head *sh, *next;
4875 static void handle_stripe(struct stripe_head *sh)
5164 struct stripe_head *sh_src
5275 struct stripe_head *sh;
5276 sh = list_entry(l, struct stripe_head, lru);
5295 struct stripe_head *sh = list_entry(head.next, struct stripe_head, lru);
5512 static struct stripe_head *__get_priority_stripe(struct r5conf *conf, int group)
5514 struct stripe_head *sh, *tmp;
5614 struct stripe_head *sh;
5623 sh = list_first_entry(&cb->list, struct stripe_head, lru);
5650 struct stripe_head *sh)
5681 struct stripe_head *sh;
5770 struct stripe_head *sh;
5891 /* Might have got the wrong stripe_head
5951 struct stripe_head *sh;
6161 sh = list_entry(stripes.next, struct stripe_head, lru);
6212 struct stripe_head *sh;
6315 struct stripe_head *sh;
6371 struct stripe_head *batch[MAX_STRIPE_BATCH], *sh;
7360 memory = conf->min_nr_stripes * (sizeof(struct stripe_head) +