| H A D | raid5.c | 26 * (in add_stripe_bio) we update the in-memory bitmap and record in sh->bm_seq 124 static inline int raid6_d0(struct stripe_head *sh) in raid6_d0() argument 126 if (sh->ddf_layout) in raid6_d0() 130 if (sh->qd_idx == sh->disks - 1) in raid6_d0() 133 return sh->qd_idx + 1; in raid6_d0() 146 static int raid6_idx_to_slot(int idx, struct stripe_head *sh, in raid6_idx_to_slot() argument 151 if (sh->ddf_layout) in raid6_idx_to_slot() 153 if (idx == sh->pd_idx) in raid6_idx_to_slot() 155 if (idx == sh in raid6_idx_to_slot() 164 stripe_operations_active(struct stripe_head * sh) stripe_operations_active() argument 171 stripe_is_lowprio(struct stripe_head * sh) stripe_is_lowprio() argument 178 raid5_wakeup_stripe_thread(struct stripe_head * sh) raid5_wakeup_stripe_thread() argument 225 do_release_stripe(struct r5conf * conf,struct stripe_head * sh,struct list_head * temp_inactive_list) do_release_stripe() argument 311 __release_stripe(struct r5conf * conf,struct stripe_head * sh,struct list_head * temp_inactive_list) __release_stripe() argument 372 struct stripe_head *sh, *t; release_stripe_list() local 397 raid5_release_stripe(struct stripe_head * sh) raid5_release_stripe() argument 428 remove_hash(struct stripe_head * sh) remove_hash() argument 436 insert_hash(struct r5conf * conf,struct stripe_head * sh) insert_hash() argument 449 struct stripe_head *sh = NULL; get_free_stripe() local 467 free_stripe_pages(struct stripe_head * sh) free_stripe_pages() argument 484 alloc_stripe_pages(struct stripe_head * sh,gfp_t gfp) alloc_stripe_pages() argument 505 init_stripe_shared_pages(struct stripe_head * sh,struct r5conf * conf,int disks) init_stripe_shared_pages() argument 525 shrink_buffers(struct stripe_head * sh) shrink_buffers() argument 548 grow_buffers(struct stripe_head * sh,gfp_t gfp) grow_buffers() argument 580 init_stripe(struct stripe_head * sh,sector_t sector,int previous) init_stripe() argument 625 struct stripe_head *sh; __find_stripe() local 639 struct stripe_head *sh; find_get_stripe() local 811 struct stripe_head *sh; raid5_get_active_stripe() local 878 is_full_stripe_write(struct stripe_head * sh) is_full_stripe_write() argument 906 stripe_can_batch(struct stripe_head * sh) stripe_can_batch() argument 918 stripe_add_to_batch_list(struct r5conf * conf,struct stripe_head * sh,struct stripe_head * last_sh) stripe_add_to_batch_list() argument 1015 use_new_offset(struct r5conf * conf,struct stripe_head * sh) use_new_offset() argument 1142 ops_run_io(struct stripe_head * sh,struct stripe_head_state * s) ops_run_io() argument 1364 async_copy_data(int frombio,struct bio * bio,struct page ** page,unsigned int poff,sector_t sector,struct dma_async_tx_descriptor * tx,struct stripe_head * sh,int no_skipcopy) async_copy_data() argument 1428 struct stripe_head *sh = stripe_head_ref; ops_complete_biofill() local 1464 ops_run_biofill(struct stripe_head * sh) ops_run_biofill() argument 1498 mark_target_uptodate(struct stripe_head * sh,int target) mark_target_uptodate() argument 1513 struct stripe_head *sh = stripe_head_ref; ops_complete_compute() local 1536 to_addr_conv(struct stripe_head * sh,struct raid5_percpu * percpu,int i) to_addr_conv() argument 1546 to_addr_offs(struct stripe_head * sh,struct raid5_percpu * percpu) to_addr_offs() argument 1552 ops_run_compute5(struct stripe_head * sh,struct raid5_percpu * percpu) ops_run_compute5() argument 1605 set_syndrome_sources(struct page ** srcs,unsigned int * offs,struct stripe_head * sh,int srctype) set_syndrome_sources() argument 1649 ops_run_compute6_1(struct stripe_head * sh,struct raid5_percpu * percpu) ops_run_compute6_1() argument 1713 ops_run_compute6_2(struct stripe_head * sh,struct raid5_percpu * percpu) ops_run_compute6_2() argument 1834 struct stripe_head *sh = stripe_head_ref; ops_complete_prexor() local 1848 ops_run_prexor5(struct stripe_head * sh,struct raid5_percpu * percpu,struct dma_async_tx_descriptor * tx) ops_run_prexor5() argument 1890 ops_run_prexor6(struct stripe_head * sh,struct raid5_percpu * percpu,struct dma_async_tx_descriptor * tx) ops_run_prexor6() argument 1912 ops_run_biodrain(struct stripe_head * sh,struct dma_async_tx_descriptor * tx) ops_run_biodrain() argument 1985 struct stripe_head *sh = stripe_head_ref; ops_complete_reconstruct() local 2031 ops_run_reconstruct5(struct stripe_head * sh,struct raid5_percpu * percpu,struct dma_async_tx_descriptor * tx) ops_run_reconstruct5() argument 2129 ops_run_reconstruct6(struct stripe_head * sh,struct raid5_percpu * percpu,struct dma_async_tx_descriptor * tx) ops_run_reconstruct6() argument 2193 struct stripe_head *sh = stripe_head_ref; ops_complete_check() local 2203 ops_run_check_p(struct stripe_head * sh,struct raid5_percpu * percpu) ops_run_check_p() argument 2244 ops_run_check_pq(struct stripe_head * sh,struct raid5_percpu * percpu,int checkp) ops_run_check_pq() argument 2267 raid_run_ops(struct stripe_head * sh,unsigned long ops_request) raid_run_ops() argument 2339 free_stripe(struct kmem_cache * sc,struct stripe_head * sh) free_stripe() argument 2352 struct stripe_head *sh; alloc_stripe() local 2384 struct stripe_head *sh; grow_one_stripe() local 2684 struct stripe_head *sh; drop_one_stripe() local 2712 struct stripe_head *sh = bi->bi_private; raid5_end_read_request() local 2838 struct stripe_head *sh = bi->bi_private; raid5_end_write_request() local 2948 raid5_compute_sector(struct r5conf * conf,sector_t r_sector,int previous,int * dd_idx,struct stripe_head * sh) raid5_compute_sector() argument 3148 raid5_compute_blocknr(struct stripe_head * sh,int i,int previous) raid5_compute_blocknr() argument 3325 schedule_reconstruction(struct stripe_head * sh,struct stripe_head_state * s,int rcw,int expand) schedule_reconstruction() argument 3433 stripe_bio_overlaps(struct stripe_head * sh,struct bio * bi,int dd_idx,int forwrite) stripe_bio_overlaps() argument 3493 __add_stripe_bio(struct stripe_head * sh,struct bio * bi,int dd_idx,int forwrite,int previous) __add_stripe_bio() argument 3551 add_stripe_bio(struct stripe_head * sh,struct bio * bi,int dd_idx,int forwrite,int previous) add_stripe_bio() argument 3570 stripe_set_idx(sector_t stripe,struct r5conf * conf,int previous,struct stripe_head * sh) stripe_set_idx() argument 3586 handle_failed_stripe(struct r5conf * conf,struct stripe_head * sh,struct stripe_head_state * s,int disks) handle_failed_stripe() argument 3685 handle_failed_sync(struct r5conf * conf,struct stripe_head * sh,struct stripe_head_state * s) handle_failed_sync() argument 3733 want_replace(struct stripe_head * sh,int disk_idx) want_replace() argument 3748 need_this_block(struct stripe_head * sh,struct stripe_head_state * s,int disk_idx,int disks) need_this_block() argument 3860 fetch_block(struct stripe_head * sh,struct stripe_head_state * s,int disk_idx,int disks) fetch_block() argument 3946 handle_stripe_fill(struct stripe_head * sh,struct stripe_head_state * s,int disks) handle_stripe_fill() argument 3988 handle_stripe_clean_event(struct r5conf * conf,struct stripe_head * sh,int disks) handle_stripe_clean_event() argument 4100 handle_stripe_dirtying(struct r5conf * conf,struct stripe_head * sh,struct stripe_head_state * s,int disks) handle_stripe_dirtying() argument 4270 handle_parity_checks5(struct r5conf * conf,struct stripe_head * sh,struct stripe_head_state * s,int disks) handle_parity_checks5() argument 4362 handle_parity_checks6(struct r5conf * conf,struct stripe_head * sh,struct stripe_head_state * s,int disks) handle_parity_checks6() argument 4538 handle_stripe_expansion(struct r5conf * conf,struct stripe_head * sh) handle_stripe_expansion() argument 4611 analyse_stripe(struct stripe_head * sh,struct stripe_head_state * s) analyse_stripe() argument 4815 clear_batch_ready(struct stripe_head * sh) clear_batch_ready() argument 4850 struct stripe_head *sh, *next; break_stripe_batch_list() local 4904 handle_stripe(struct stripe_head * sh) handle_stripe() argument 5307 struct stripe_head *sh; raid5_activate_delayed() local 5327 struct stripe_head *sh = list_entry(head.next, struct stripe_head, lru); activate_bit_delay() local 5526 struct stripe_head *sh, *tmp; __get_priority_stripe() local 5626 struct stripe_head *sh; raid5_unplug() local 5662 release_stripe_plug(struct mddev * mddev,struct stripe_head * sh) release_stripe_plug() argument 5693 struct stripe_head *sh; make_discard_request() local 5787 stripe_ahead_of_reshape(struct mddev * mddev,struct r5conf * conf,struct stripe_head * sh) stripe_ahead_of_reshape() argument 5814 add_all_stripe_bios(struct r5conf * conf,struct stripe_request_ctx * ctx,struct stripe_head * sh,struct bio * bi,int forwrite,int previous) add_all_stripe_bios() argument 5955 struct stripe_head *sh; make_stripe_request() local 6062 struct stripe_head sh; raid5_bio_lowest_chunk_sector() local 6242 struct stripe_head *sh; reshape_request() local 6511 struct stripe_head *sh; raid5_sync_request() local 6613 struct stripe_head *sh; retry_aligned_read() local 6668 struct stripe_head *batch[MAX_STRIPE_BATCH], *sh; handle_active_stripes() local [all...] |
| H A D | raid5-cache.c | 141 /* all stripes in r5cache, in the order of seq at sh->log_start */ 193 * sect: align_bi->bi_iter.bi_sector or sh->sector 308 struct stripe_head *sh, int disks) in r5c_handle_cached_data_endio() argument 312 for (i = sh->disks; i--; ) { in r5c_handle_cached_data_endio() 313 if (sh->dev[i].written) { in r5c_handle_cached_data_endio() 314 set_bit(R5_UPTODATE, &sh->dev[i].flags); in r5c_handle_cached_data_endio() 315 r5c_return_dev_pending_writes(conf, &sh->dev[i]); in r5c_handle_cached_data_endio() 448 void r5c_make_stripe_write_out(struct stripe_head *sh) in r5c_make_stripe_write_out() argument 450 struct r5conf *conf = sh->raid_conf; in r5c_make_stripe_write_out() 455 WARN_ON(!test_bit(STRIPE_R5C_CACHING, &sh in r5c_make_stripe_write_out() 462 r5c_handle_data_cached(struct stripe_head * sh) r5c_handle_data_cached() argument 478 r5c_handle_parity_cached(struct stripe_head * sh) r5c_handle_parity_cached() argument 491 r5c_finish_cache_stripe(struct stripe_head * sh) r5c_finish_cache_stripe() argument 514 struct stripe_head *sh, *next; r5l_io_run_stripes() local 899 r5l_log_stripe(struct r5l_log * log,struct stripe_head * sh,int data_pages,int parity_pages) r5l_log_stripe() argument 978 r5l_add_no_space_stripe(struct r5l_log * log,struct stripe_head * sh) r5l_add_no_space_stripe() argument 989 r5l_write_stripe(struct r5l_log * log,struct stripe_head * sh) r5l_write_stripe() argument 1131 struct stripe_head *sh; r5l_run_no_space_stripes() local 1151 struct stripe_head *sh; r5c_calculate_new_cp() local 1182 struct stripe_head *sh; r5l_run_no_mem_stripe() local 1241 r5l_stripe_write_finished(struct stripe_head * sh) r5l_stripe_write_finished() argument 1361 r5c_flush_stripe(struct r5conf * conf,struct stripe_head * sh) r5c_flush_stripe() argument 1397 struct stripe_head *sh, *next; r5c_flush_cache() local 1422 struct stripe_head *sh; r5c_do_reclaim() local 1801 r5l_recovery_load_data(struct r5l_log * log,struct stripe_head * sh,struct r5l_recovery_ctx * ctx,struct r5l_payload_data_parity * payload,sector_t log_offset) r5l_recovery_load_data() argument 1823 r5l_recovery_load_parity(struct r5l_log * log,struct stripe_head * sh,struct r5l_recovery_ctx * ctx,struct r5l_payload_data_parity * payload,sector_t log_offset) r5l_recovery_load_parity() argument 1848 r5l_recovery_reset_stripe(struct stripe_head * sh) r5l_recovery_reset_stripe() argument 1860 r5l_recovery_replay_one_stripe(struct r5conf * conf,struct stripe_head * sh,struct r5l_recovery_ctx * ctx) r5l_recovery_replay_one_stripe() argument 1916 struct stripe_head *sh; r5c_recovery_alloc_stripe() local 1931 struct stripe_head *sh; r5c_recovery_lookup_stripe() local 1943 struct stripe_head *sh, *next; r5c_recovery_drop_stripes() local 1956 struct stripe_head *sh, *next; r5c_recovery_replay_stripes() local 2073 struct stripe_head *sh; r5c_recovery_analyze_meta_block() local 2196 r5c_recovery_load_one_stripe(struct r5l_log * log,struct stripe_head * sh) r5c_recovery_load_one_stripe() argument 2229 struct stripe_head *sh; r5c_recovery_flush_log() local 2340 struct stripe_head *sh; r5c_recovery_rewrite_data_only_stripes() local 2415 struct stripe_head *sh, *next; r5c_recovery_flush_data_only_stripes() local 2623 r5c_try_caching_write(struct r5conf * conf,struct stripe_head * sh,struct stripe_head_state * s,int disks) r5c_try_caching_write() argument 2746 r5c_release_extra_page(struct stripe_head * sh) r5c_release_extra_page() argument 2772 r5c_use_extra_page(struct stripe_head * sh) r5c_use_extra_page() argument 2791 r5c_finish_stripe_write_out(struct r5conf * conf,struct stripe_head * sh,struct stripe_head_state * s) r5c_finish_stripe_write_out() argument 2871 r5c_cache_data(struct r5l_log * log,struct stripe_head * sh) r5c_cache_data() argument [all...] |