Lines Matching refs:r5l_log
82 struct r5l_log { struct
212 struct r5l_log *log;
252 bool r5c_is_writeback(struct r5l_log *log) in r5c_is_writeback()
258 static sector_t r5l_ring_add(struct r5l_log *log, sector_t start, sector_t inc) in r5l_ring_add()
266 static sector_t r5l_ring_distance(struct r5l_log *log, sector_t start, in r5l_ring_distance()
275 static bool r5l_has_free_space(struct r5l_log *log, sector_t size) in r5l_has_free_space()
326 void r5l_wake_reclaim(struct r5l_log *log, sector_t space);
401 struct r5l_log *log = conf->log; in r5c_log_required_to_flush_cache()
418 static inline void r5c_update_log_state(struct r5l_log *log) in r5c_update_log_state()
454 struct r5l_log *log = conf->log; in r5c_make_stripe_write_out()
496 struct r5l_log *log = sh->raid_conf->log; in r5c_finish_cache_stripe()
529 static void r5l_log_run_stripes(struct r5l_log *log) in r5l_log_run_stripes()
545 static void r5l_move_to_end_ios(struct r5l_log *log) in r5l_move_to_end_ios()
564 struct r5l_log *log = io->log; in r5l_log_endio()
626 static void r5l_do_submit_io(struct r5l_log *log, struct r5l_io_unit *io) in r5l_do_submit_io()
663 struct r5l_log *log = container_of(work, struct r5l_log, in r5l_submit_io_async()
684 struct r5l_log *log = container_of(work, struct r5l_log, in r5c_disable_writeback_async()
708 static void r5l_submit_current_io(struct r5l_log *log) in r5l_submit_current_io()
738 static struct bio *r5l_bio_alloc(struct r5l_log *log) in r5l_bio_alloc()
749 static void r5_reserve_log_entry(struct r5l_log *log, struct r5l_io_unit *io) in r5_reserve_log_entry()
767 static struct r5l_io_unit *r5l_new_meta(struct r5l_log *log) in r5l_new_meta()
809 static int r5l_get_meta(struct r5l_log *log, unsigned int payload_size) in r5l_get_meta()
824 static void r5l_append_payload_meta(struct r5l_log *log, u16 type, in r5l_append_payload_meta()
846 static void r5l_append_payload_page(struct r5l_log *log, struct page *page) in r5l_append_payload_page()
864 static void r5l_append_flush_payload(struct r5l_log *log, sector_t sect) in r5l_append_flush_payload()
904 static int r5l_log_stripe(struct r5l_log *log, struct stripe_head *sh, in r5l_log_stripe()
982 static inline void r5l_add_no_space_stripe(struct r5l_log *log, in r5l_add_no_space_stripe()
994 int r5l_write_stripe(struct r5l_log *log, struct stripe_head *sh) in r5l_write_stripe()
1092 void r5l_write_stripe_run(struct r5l_log *log) in r5l_write_stripe_run()
1101 int r5l_handle_flush_request(struct r5l_log *log, struct bio *bio) in r5l_handle_flush_request()
1134 static void r5l_run_no_space_stripes(struct r5l_log *log) in r5l_run_no_space_stripes()
1157 struct r5l_log *log = conf->log; in r5c_calculate_new_cp()
1177 static sector_t r5l_reclaimable_space(struct r5l_log *log) in r5l_reclaimable_space()
1185 static void r5l_run_no_mem_stripe(struct r5l_log *log) in r5l_run_no_mem_stripe()
1200 static bool r5l_complete_finished_ios(struct r5l_log *log) in r5l_complete_finished_ios()
1226 struct r5l_log *log = io->log; in __r5l_stripe_write_finished()
1259 struct r5l_log *log = container_of(bio, struct r5l_log, in r5l_log_flush_endio()
1288 void r5l_flush_stripe_to_raid(struct r5l_log *log) in r5l_flush_stripe_to_raid()
1314 static void r5l_write_super(struct r5l_log *log, sector_t cp);
1315 static void r5l_write_super_and_discard_space(struct r5l_log *log, in r5l_write_super_and_discard_space()
1426 struct r5l_log *log = conf->log; in r5c_do_reclaim()
1499 static void r5l_do_reclaim(struct r5l_log *log) in r5l_do_reclaim()
1555 struct r5l_log *log = conf->log; in r5l_reclaim_thread()
1563 void r5l_wake_reclaim(struct r5l_log *log, sector_t space) in r5l_wake_reclaim()
1578 void r5l_quiesce(struct r5l_log *log, int quiesce) in r5l_quiesce()
1595 struct r5l_log *log; in r5l_log_disk_error()
1634 static int r5l_recovery_allocate_ra_pool(struct r5l_log *log, in r5l_recovery_allocate_ra_pool()
1663 static void r5l_recovery_free_ra_pool(struct r5l_log *log, in r5l_recovery_free_ra_pool()
1679 static int r5l_recovery_fetch_ra_pool(struct r5l_log *log, in r5l_recovery_fetch_ra_pool()
1709 static int r5l_recovery_read_page(struct r5l_log *log, in r5l_recovery_read_page()
1733 static int r5l_recovery_read_meta_block(struct r5l_log *log, in r5l_recovery_read_meta_block()
1768 r5l_recovery_create_empty_meta_block(struct r5l_log *log, in r5l_recovery_create_empty_meta_block()
1783 static int r5l_log_write_empty_meta_block(struct r5l_log *log, sector_t pos, in r5l_log_write_empty_meta_block()
1812 static void r5l_recovery_load_data(struct r5l_log *log, in r5l_recovery_load_data()
1834 static void r5l_recovery_load_parity(struct r5l_log *log, in r5l_recovery_load_parity()
1985 r5l_recovery_verify_data_checksum(struct r5l_log *log, in r5l_recovery_verify_data_checksum()
2005 r5l_recovery_verify_data_checksum_for_mb(struct r5l_log *log, in r5l_recovery_verify_data_checksum_for_mb()
2078 r5c_recovery_analyze_meta_block(struct r5l_log *log, in r5c_recovery_analyze_meta_block()
2212 static void r5c_recovery_load_one_stripe(struct r5l_log *log, in r5c_recovery_load_one_stripe()
2243 static int r5c_recovery_flush_log(struct r5l_log *log, in r5c_recovery_flush_log()
2354 r5c_recovery_rewrite_data_only_stripes(struct r5l_log *log, in r5c_recovery_rewrite_data_only_stripes()
2427 static void r5c_recovery_flush_data_only_stripes(struct r5l_log *log, in r5c_recovery_flush_data_only_stripes()
2453 static int r5l_recovery_log(struct r5l_log *log) in r5l_recovery_log()
2522 static void r5l_write_super(struct r5l_log *log, sector_t cp) in r5l_write_super()
2639 struct r5l_log *log = conf->log; in r5c_try_caching_write()
2806 struct r5l_log *log = conf->log; in r5c_finish_stripe_write_out()
2887 int r5c_cache_data(struct r5l_log *log, struct stripe_head *sh) in r5c_cache_data()
2945 struct r5l_log *log = conf->log; in r5c_big_stripe_cached()
2958 static int r5l_load_log(struct r5l_log *log) in r5l_load_log()
3033 int r5l_start(struct r5l_log *log) in r5l_start()
3053 struct r5l_log *log = conf->log; in r5c_update_on_rdev_error()
3067 struct r5l_log *log; in r5l_init_log()
3171 struct r5l_log *log = conf->log; in r5l_exit_log()