Lines Matching refs:sh
10 void r5l_stripe_write_finished(struct stripe_head *sh);
15 int r5c_try_caching_write(struct r5conf *conf, struct stripe_head *sh,
17 void r5c_finish_stripe_write_out(struct r5conf *conf, struct stripe_head *sh,
19 void r5c_release_extra_page(struct stripe_head *sh);
20 void r5c_use_extra_page(struct stripe_head *sh);
23 struct stripe_head *sh, int disks);
24 int r5c_cache_data(struct r5l_log *log, struct stripe_head *sh);
25 void r5c_make_stripe_write_out(struct stripe_head *sh);
35 ops_run_partial_parity(struct stripe_head *sh, struct raid5_percpu *percpu,
39 int ppl_write_stripe(struct r5conf *conf, struct stripe_head *sh);
41 void ppl_stripe_write_finished(struct stripe_head *sh);
57 static inline int log_stripe(struct stripe_head *sh, struct stripe_head_state *s)
59 struct r5conf *conf = sh->raid_conf;
62 if (!test_bit(STRIPE_R5C_CACHING, &sh->state)) {
66 return r5l_write_stripe(conf->log, sh);
67 } else if (test_bit(STRIPE_LOG_TRAPPED, &sh->state)) {
69 return r5c_cache_data(conf->log, sh);
72 return ppl_write_stripe(conf, sh);
78 static inline void log_stripe_write_finished(struct stripe_head *sh)
80 struct r5conf *conf = sh->raid_conf;
83 r5l_stripe_write_finished(sh);
85 ppl_stripe_write_finished(sh);