Lines Matching refs:r5l_log

82 struct r5l_log {  struct
210 struct r5l_log *log;
250 bool r5c_is_writeback(struct r5l_log *log) in r5c_is_writeback()
256 static sector_t r5l_ring_add(struct r5l_log *log, sector_t start, sector_t inc) in r5l_ring_add()
264 static sector_t r5l_ring_distance(struct r5l_log *log, sector_t start, in r5l_ring_distance()
273 static bool r5l_has_free_space(struct r5l_log *log, sector_t size) in r5l_has_free_space()
324 void r5l_wake_reclaim(struct r5l_log *log, sector_t space);
399 struct r5l_log *log = conf->log; in r5c_log_required_to_flush_cache()
416 static inline void r5c_update_log_state(struct r5l_log *log) in r5c_update_log_state()
452 struct r5l_log *log = conf->log; in r5c_make_stripe_write_out()
494 struct r5l_log *log = sh->raid_conf->log; in r5c_finish_cache_stripe()
527 static void r5l_log_run_stripes(struct r5l_log *log) in r5l_log_run_stripes()
543 static void r5l_move_to_end_ios(struct r5l_log *log) in r5l_move_to_end_ios()
562 struct r5l_log *log = io->log; in r5l_log_endio()
624 static void r5l_do_submit_io(struct r5l_log *log, struct r5l_io_unit *io) in r5l_do_submit_io()
661 struct r5l_log *log = container_of(work, struct r5l_log, in r5l_submit_io_async()
682 struct r5l_log *log = container_of(work, struct r5l_log, in r5c_disable_writeback_async()
706 static void r5l_submit_current_io(struct r5l_log *log) in r5l_submit_current_io()
736 static struct bio *r5l_bio_alloc(struct r5l_log *log) in r5l_bio_alloc()
746 static void r5_reserve_log_entry(struct r5l_log *log, struct r5l_io_unit *io) in r5_reserve_log_entry()
764 static struct r5l_io_unit *r5l_new_meta(struct r5l_log *log) in r5l_new_meta()
806 static int r5l_get_meta(struct r5l_log *log, unsigned int payload_size) in r5l_get_meta()
821 static void r5l_append_payload_meta(struct r5l_log *log, u16 type, in r5l_append_payload_meta()
843 static void r5l_append_payload_page(struct r5l_log *log, struct page *page) in r5l_append_payload_page()
861 static void r5l_append_flush_payload(struct r5l_log *log, sector_t sect) in r5l_append_flush_payload()
901 static int r5l_log_stripe(struct r5l_log *log, struct stripe_head *sh, in r5l_log_stripe()
979 static inline void r5l_add_no_space_stripe(struct r5l_log *log, in r5l_add_no_space_stripe()
991 int r5l_write_stripe(struct r5l_log *log, struct stripe_head *sh) in r5l_write_stripe()
1089 void r5l_write_stripe_run(struct r5l_log *log) in r5l_write_stripe_run()
1098 int r5l_handle_flush_request(struct r5l_log *log, struct bio *bio) in r5l_handle_flush_request()
1131 static void r5l_run_no_space_stripes(struct r5l_log *log) in r5l_run_no_space_stripes()
1154 struct r5l_log *log = conf->log; in r5c_calculate_new_cp()
1174 static sector_t r5l_reclaimable_space(struct r5l_log *log) in r5l_reclaimable_space()
1182 static void r5l_run_no_mem_stripe(struct r5l_log *log) in r5l_run_no_mem_stripe()
1197 static bool r5l_complete_finished_ios(struct r5l_log *log) in r5l_complete_finished_ios()
1223 struct r5l_log *log = io->log; in __r5l_stripe_write_finished()
1256 struct r5l_log *log = container_of(bio, struct r5l_log, in r5l_log_flush_endio()
1287 void r5l_flush_stripe_to_raid(struct r5l_log *log) in r5l_flush_stripe_to_raid()
1312 static void r5l_write_super(struct r5l_log *log, sector_t cp);
1313 static void r5l_write_super_and_discard_space(struct r5l_log *log, in r5l_write_super_and_discard_space()
1424 struct r5l_log *log = conf->log; in r5c_do_reclaim()
1497 static void r5l_do_reclaim(struct r5l_log *log) in r5l_do_reclaim()
1553 struct r5l_log *log = conf->log; in r5l_reclaim_thread()
1561 void r5l_wake_reclaim(struct r5l_log *log, sector_t space) in r5l_wake_reclaim()
1576 void r5l_quiesce(struct r5l_log *log, int quiesce) in r5l_quiesce()
1593 struct r5l_log *log = conf->log; in r5l_log_disk_error()
1627 static int r5l_recovery_allocate_ra_pool(struct r5l_log *log, in r5l_recovery_allocate_ra_pool()
1650 static void r5l_recovery_free_ra_pool(struct r5l_log *log, in r5l_recovery_free_ra_pool()
1665 static int r5l_recovery_fetch_ra_pool(struct r5l_log *log, in r5l_recovery_fetch_ra_pool()
1699 static int r5l_recovery_read_page(struct r5l_log *log, in r5l_recovery_read_page()
1723 static int r5l_recovery_read_meta_block(struct r5l_log *log, in r5l_recovery_read_meta_block()
1758 r5l_recovery_create_empty_meta_block(struct r5l_log *log, in r5l_recovery_create_empty_meta_block()
1773 static int r5l_log_write_empty_meta_block(struct r5l_log *log, sector_t pos, in r5l_log_write_empty_meta_block()
1802 static void r5l_recovery_load_data(struct r5l_log *log, in r5l_recovery_load_data()
1824 static void r5l_recovery_load_parity(struct r5l_log *log, in r5l_recovery_load_parity()
1976 r5l_recovery_verify_data_checksum(struct r5l_log *log, in r5l_recovery_verify_data_checksum()
1996 r5l_recovery_verify_data_checksum_for_mb(struct r5l_log *log, in r5l_recovery_verify_data_checksum_for_mb()
2069 r5c_recovery_analyze_meta_block(struct r5l_log *log, in r5c_recovery_analyze_meta_block()
2203 static void r5c_recovery_load_one_stripe(struct r5l_log *log, in r5c_recovery_load_one_stripe()
2234 static int r5c_recovery_flush_log(struct r5l_log *log, in r5c_recovery_flush_log()
2345 r5c_recovery_rewrite_data_only_stripes(struct r5l_log *log, in r5c_recovery_rewrite_data_only_stripes()
2418 static void r5c_recovery_flush_data_only_stripes(struct r5l_log *log, in r5c_recovery_flush_data_only_stripes()
2451 static int r5l_recovery_log(struct r5l_log *log) in r5l_recovery_log()
2520 static void r5l_write_super(struct r5l_log *log, sector_t cp) in r5l_write_super()
2637 struct r5l_log *log = conf->log; in r5c_try_caching_write()
2804 struct r5l_log *log = conf->log; in r5c_finish_stripe_write_out()
2885 int r5c_cache_data(struct r5l_log *log, struct stripe_head *sh) in r5c_cache_data()
2943 struct r5l_log *log = conf->log; in r5c_big_stripe_cached()
2956 static int r5l_load_log(struct r5l_log *log) in r5l_load_log()
3031 int r5l_start(struct r5l_log *log) in r5l_start()
3051 struct r5l_log *log = conf->log; in r5c_update_on_rdev_error()
3065 struct r5l_log *log; in r5l_init_log()
3167 struct r5l_log *log = conf->log; in r5l_exit_log()