Lines Matching refs:r5l_log
91 struct r5l_log { struct
221 struct r5l_log *log;
261 bool r5c_is_writeback(struct r5l_log *log) in r5c_is_writeback()
267 static sector_t r5l_ring_add(struct r5l_log *log, sector_t start, sector_t inc) in r5l_ring_add()
275 static sector_t r5l_ring_distance(struct r5l_log *log, sector_t start, in r5l_ring_distance()
284 static bool r5l_has_free_space(struct r5l_log *log, sector_t size) in r5l_has_free_space()
335 void r5l_wake_reclaim(struct r5l_log *log, sector_t space);
410 struct r5l_log *log = conf->log; in r5c_log_required_to_flush_cache()
427 static inline void r5c_update_log_state(struct r5l_log *log) in r5c_update_log_state()
463 struct r5l_log *log = conf->log; in r5c_make_stripe_write_out()
505 struct r5l_log *log = sh->raid_conf->log; in r5c_finish_cache_stripe()
538 static void r5l_log_run_stripes(struct r5l_log *log) in r5l_log_run_stripes()
554 static void r5l_move_to_end_ios(struct r5l_log *log) in r5l_move_to_end_ios()
573 struct r5l_log *log = io->log; in r5l_log_endio()
635 static void r5l_do_submit_io(struct r5l_log *log, struct r5l_io_unit *io) in r5l_do_submit_io()
672 struct r5l_log *log = container_of(work, struct r5l_log, in r5l_submit_io_async()
693 struct r5l_log *log = container_of(work, struct r5l_log, in r5c_disable_writeback_async()
717 static void r5l_submit_current_io(struct r5l_log *log) in r5l_submit_current_io()
747 static struct bio *r5l_bio_alloc(struct r5l_log *log) in r5l_bio_alloc()
758 static void r5_reserve_log_entry(struct r5l_log *log, struct r5l_io_unit *io) in r5_reserve_log_entry()
776 static struct r5l_io_unit *r5l_new_meta(struct r5l_log *log) in r5l_new_meta()
818 static int r5l_get_meta(struct r5l_log *log, unsigned int payload_size) in r5l_get_meta()
833 static void r5l_append_payload_meta(struct r5l_log *log, u16 type, in r5l_append_payload_meta()
855 static void r5l_append_payload_page(struct r5l_log *log, struct page *page) in r5l_append_payload_page()
873 static void r5l_append_flush_payload(struct r5l_log *log, sector_t sect) in r5l_append_flush_payload()
913 static int r5l_log_stripe(struct r5l_log *log, struct stripe_head *sh, in r5l_log_stripe()
991 static inline void r5l_add_no_space_stripe(struct r5l_log *log, in r5l_add_no_space_stripe()
1003 int r5l_write_stripe(struct r5l_log *log, struct stripe_head *sh) in r5l_write_stripe()
1101 void r5l_write_stripe_run(struct r5l_log *log) in r5l_write_stripe_run()
1110 int r5l_handle_flush_request(struct r5l_log *log, struct bio *bio) in r5l_handle_flush_request()
1143 static void r5l_run_no_space_stripes(struct r5l_log *log) in r5l_run_no_space_stripes()
1166 struct r5l_log *log = conf->log; in r5c_calculate_new_cp()
1186 static sector_t r5l_reclaimable_space(struct r5l_log *log) in r5l_reclaimable_space()
1194 static void r5l_run_no_mem_stripe(struct r5l_log *log) in r5l_run_no_mem_stripe()
1209 static bool r5l_complete_finished_ios(struct r5l_log *log) in r5l_complete_finished_ios()
1235 struct r5l_log *log = io->log; in __r5l_stripe_write_finished()
1268 struct r5l_log *log = container_of(bio, struct r5l_log, in r5l_log_flush_endio()
1297 void r5l_flush_stripe_to_raid(struct r5l_log *log) in r5l_flush_stripe_to_raid()
1323 static void r5l_write_super(struct r5l_log *log, sector_t cp);
1324 static void r5l_write_super_and_discard_space(struct r5l_log *log, in r5l_write_super_and_discard_space()
1435 struct r5l_log *log = conf->log; in r5c_do_reclaim()
1508 static void r5l_do_reclaim(struct r5l_log *log) in r5l_do_reclaim()
1564 struct r5l_log *log = conf->log; in r5l_reclaim_thread()
1572 void r5l_wake_reclaim(struct r5l_log *log, sector_t space) in r5l_wake_reclaim()
1587 void r5l_quiesce(struct r5l_log *log, int quiesce) in r5l_quiesce()
1604 struct r5l_log *log; in r5l_log_disk_error()
1643 static int r5l_recovery_allocate_ra_pool(struct r5l_log *log, in r5l_recovery_allocate_ra_pool()
1672 static void r5l_recovery_free_ra_pool(struct r5l_log *log, in r5l_recovery_free_ra_pool()
1688 static int r5l_recovery_fetch_ra_pool(struct r5l_log *log, in r5l_recovery_fetch_ra_pool()
1718 static int r5l_recovery_read_page(struct r5l_log *log, in r5l_recovery_read_page()
1742 static int r5l_recovery_read_meta_block(struct r5l_log *log, in r5l_recovery_read_meta_block()
1777 r5l_recovery_create_empty_meta_block(struct r5l_log *log, in r5l_recovery_create_empty_meta_block()
1792 static int r5l_log_write_empty_meta_block(struct r5l_log *log, sector_t pos, in r5l_log_write_empty_meta_block()
1821 static void r5l_recovery_load_data(struct r5l_log *log, in r5l_recovery_load_data()
1843 static void r5l_recovery_load_parity(struct r5l_log *log, in r5l_recovery_load_parity()
1992 r5l_recovery_verify_data_checksum(struct r5l_log *log, in r5l_recovery_verify_data_checksum()
2012 r5l_recovery_verify_data_checksum_for_mb(struct r5l_log *log, in r5l_recovery_verify_data_checksum_for_mb()
2085 r5c_recovery_analyze_meta_block(struct r5l_log *log, in r5c_recovery_analyze_meta_block()
2210 static void r5c_recovery_load_one_stripe(struct r5l_log *log, in r5c_recovery_load_one_stripe()
2241 static int r5c_recovery_flush_log(struct r5l_log *log, in r5c_recovery_flush_log()
2352 r5c_recovery_rewrite_data_only_stripes(struct r5l_log *log, in r5c_recovery_rewrite_data_only_stripes()
2425 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()
3171 struct r5l_log *log = conf->log; in r5l_exit_log()