diff options
Diffstat (limited to 'fs/f2fs/gc.h')
-rw-r--r-- | fs/f2fs/gc.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/fs/f2fs/gc.h b/fs/f2fs/gc.h index c407a75a7daa..30b2db003acd 100644 --- a/fs/f2fs/gc.h +++ b/fs/f2fs/gc.h | |||
@@ -22,15 +22,6 @@ | |||
22 | /* Search max. number of dirty segments to select a victim segment */ | 22 | /* Search max. number of dirty segments to select a victim segment */ |
23 | #define MAX_VICTIM_SEARCH 20 | 23 | #define MAX_VICTIM_SEARCH 20 |
24 | 24 | ||
25 | enum { | ||
26 | GC_NONE = 0, | ||
27 | GC_ERROR, | ||
28 | GC_OK, | ||
29 | GC_NEXT, | ||
30 | GC_BLOCKED, | ||
31 | GC_DONE, | ||
32 | }; | ||
33 | |||
34 | struct f2fs_gc_kthread { | 25 | struct f2fs_gc_kthread { |
35 | struct task_struct *f2fs_gc_task; | 26 | struct task_struct *f2fs_gc_task; |
36 | wait_queue_head_t gc_wait_queue_head; | 27 | wait_queue_head_t gc_wait_queue_head; |
@@ -103,10 +94,3 @@ static inline int is_idle(struct f2fs_sb_info *sbi) | |||
103 | struct request_list *rl = &q->root_rl; | 94 | struct request_list *rl = &q->root_rl; |
104 | return !(rl->count[BLK_RW_SYNC]) && !(rl->count[BLK_RW_ASYNC]); | 95 | return !(rl->count[BLK_RW_SYNC]) && !(rl->count[BLK_RW_ASYNC]); |
105 | } | 96 | } |
106 | |||
107 | static inline bool should_do_checkpoint(struct f2fs_sb_info *sbi) | ||
108 | { | ||
109 | int node_secs = get_blocktype_secs(sbi, F2FS_DIRTY_NODES); | ||
110 | int dent_secs = get_blocktype_secs(sbi, F2FS_DIRTY_DENTS); | ||
111 | return free_sections(sbi) <= (node_secs + 2 * dent_secs + 2); | ||
112 | } | ||