Lines Matching defs:sh
10 extern void r5l_stripe_write_finished(struct stripe_head *sh);
16 r5c_try_caching_write(struct r5conf *conf, struct stripe_head *sh,
19 r5c_finish_stripe_write_out(struct r5conf *conf, struct stripe_head *sh,
21 extern void r5c_release_extra_page(struct stripe_head *sh);
22 extern void r5c_use_extra_page(struct stripe_head *sh);
25 struct stripe_head *sh, int disks);
26 extern int r5c_cache_data(struct r5l_log *log, struct stripe_head *sh);
27 extern void r5c_make_stripe_write_out(struct stripe_head *sh);
38 ops_run_partial_parity(struct stripe_head *sh, struct raid5_percpu *percpu,
42 extern int ppl_write_stripe(struct r5conf *conf, struct stripe_head *sh);
44 extern void ppl_stripe_write_finished(struct stripe_head *sh);
60 static inline int log_stripe(struct stripe_head *sh, struct stripe_head_state *s)
62 struct r5conf *conf = sh->raid_conf;
65 if (!test_bit(STRIPE_R5C_CACHING, &sh->state)) {
69 return r5l_write_stripe(conf->log, sh);
70 } else if (test_bit(STRIPE_LOG_TRAPPED, &sh->state)) {
72 return r5c_cache_data(conf->log, sh);
75 return ppl_write_stripe(conf, sh);
81 static inline void log_stripe_write_finished(struct stripe_head *sh)
83 struct r5conf *conf = sh->raid_conf;
86 r5l_stripe_write_finished(sh);
88 ppl_stripe_write_finished(sh);