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) in log_stripe() argument
59 struct r5conf *conf = sh->raid_conf; in log_stripe()
62 if (!test_bit(STRIPE_R5C_CACHING, &sh->state)) { in log_stripe()
66 return r5l_write_stripe(conf->log, sh); in log_stripe()
67 } else if (test_bit(STRIPE_LOG_TRAPPED, &sh->state)) { in log_stripe()
69 return r5c_cache_data(conf->log, sh); in log_stripe()
72 return ppl_write_stripe(conf, sh); in log_stripe()
78 static inline void log_stripe_write_finished(struct stripe_head *sh) in log_stripe_write_finished() argument
80 struct r5conf *conf = sh->raid_conf; in log_stripe_write_finished()
83 r5l_stripe_write_finished(sh); in log_stripe_write_finished()
85 ppl_stripe_write_finished(sh); in log_stripe_write_finished()