Lines Matching refs:cprc

1775 	struct ckpt_req_control *cprc = &sbi->cprc_info;  in __checkpoint_and_complete_reqs()  local
1781 dispatch_list = llist_del_all(&cprc->issue_list); in __checkpoint_and_complete_reqs()
1787 atomic_inc(&cprc->issued_ckpt); in __checkpoint_and_complete_reqs()
1797 atomic_sub(count, &cprc->queued_ckpt); in __checkpoint_and_complete_reqs()
1798 atomic_add(count, &cprc->total_ckpt); in __checkpoint_and_complete_reqs()
1800 spin_lock(&cprc->stat_lock); in __checkpoint_and_complete_reqs()
1801 cprc->cur_time = (unsigned int)div64_u64(sum_diff, count); in __checkpoint_and_complete_reqs()
1802 if (cprc->peak_time < cprc->cur_time) in __checkpoint_and_complete_reqs()
1803 cprc->peak_time = cprc->cur_time; in __checkpoint_and_complete_reqs()
1804 spin_unlock(&cprc->stat_lock); in __checkpoint_and_complete_reqs()
1810 struct ckpt_req_control *cprc = &sbi->cprc_info; in issue_checkpoint_thread() local
1811 wait_queue_head_t *q = &cprc->ckpt_wait_queue; in issue_checkpoint_thread()
1816 if (!llist_empty(&cprc->issue_list)) in issue_checkpoint_thread()
1820 kthread_should_stop() || !llist_empty(&cprc->issue_list)); in issue_checkpoint_thread()
1827 struct ckpt_req_control *cprc = &sbi->cprc_info; in flush_remained_ckpt_reqs() local
1829 if (!llist_empty(&cprc->issue_list)) { in flush_remained_ckpt_reqs()
1848 struct ckpt_req_control *cprc = &sbi->cprc_info; in f2fs_issue_checkpoint() local
1863 if (!cprc->f2fs_issue_ckpt) in f2fs_issue_checkpoint()
1868 llist_add(&req.llnode, &cprc->issue_list); in f2fs_issue_checkpoint()
1869 atomic_inc(&cprc->queued_ckpt); in f2fs_issue_checkpoint()
1878 if (waitqueue_active(&cprc->ckpt_wait_queue)) in f2fs_issue_checkpoint()
1879 wake_up(&cprc->ckpt_wait_queue); in f2fs_issue_checkpoint()
1881 if (cprc->f2fs_issue_ckpt) in f2fs_issue_checkpoint()
1892 struct ckpt_req_control *cprc = &sbi->cprc_info; in f2fs_start_ckpt_thread() local
1894 if (cprc->f2fs_issue_ckpt) in f2fs_start_ckpt_thread()
1897 cprc->f2fs_issue_ckpt = kthread_run(issue_checkpoint_thread, sbi, in f2fs_start_ckpt_thread()
1899 if (IS_ERR(cprc->f2fs_issue_ckpt)) { in f2fs_start_ckpt_thread()
1900 cprc->f2fs_issue_ckpt = NULL; in f2fs_start_ckpt_thread()
1904 set_task_ioprio(cprc->f2fs_issue_ckpt, cprc->ckpt_thread_ioprio); in f2fs_start_ckpt_thread()
1911 struct ckpt_req_control *cprc = &sbi->cprc_info; in f2fs_stop_ckpt_thread() local
1914 if (!cprc->f2fs_issue_ckpt) in f2fs_stop_ckpt_thread()
1917 ckpt_task = cprc->f2fs_issue_ckpt; in f2fs_stop_ckpt_thread()
1918 cprc->f2fs_issue_ckpt = NULL; in f2fs_stop_ckpt_thread()
1926 struct ckpt_req_control *cprc = &sbi->cprc_info; in f2fs_flush_ckpt_thread() local
1931 while (atomic_read(&cprc->queued_ckpt)) in f2fs_flush_ckpt_thread()
1937 struct ckpt_req_control *cprc = &sbi->cprc_info; in f2fs_init_ckpt_req_control() local
1939 atomic_set(&cprc->issued_ckpt, 0); in f2fs_init_ckpt_req_control()
1940 atomic_set(&cprc->total_ckpt, 0); in f2fs_init_ckpt_req_control()
1941 atomic_set(&cprc->queued_ckpt, 0); in f2fs_init_ckpt_req_control()
1942 cprc->ckpt_thread_ioprio = DEFAULT_CHECKPOINT_IOPRIO; in f2fs_init_ckpt_req_control()
1943 init_waitqueue_head(&cprc->ckpt_wait_queue); in f2fs_init_ckpt_req_control()
1944 init_llist_head(&cprc->issue_list); in f2fs_init_ckpt_req_control()
1945 spin_lock_init(&cprc->stat_lock); in f2fs_init_ckpt_req_control()