diff options
author | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2013-10-24 01:19:18 -0400 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2013-10-25 03:54:38 -0400 |
commit | 4660f9c0fe484353b17a4b9d1cc2b036fa895f76 (patch) | |
tree | b992484821791c6b87dc3debfc7df6139dff6480 /fs/f2fs/gc.c | |
parent | 81eb8d6e2869b119d4a7b8c02091c3779733a3ac (diff) |
f2fs: introduce f2fs_balance_fs_bg for some background jobs
This patch merges some background jobs into this new function.
Signed-off-by: Changman Lee <cm224.lee@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs/f2fs/gc.c')
-rw-r--r-- | fs/f2fs/gc.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/f2fs/gc.c b/fs/f2fs/gc.c index 783c6cc6253c..b7ad1ec7e4cc 100644 --- a/fs/f2fs/gc.c +++ b/fs/f2fs/gc.c | |||
@@ -83,9 +83,8 @@ static int gc_thread_func(void *data) | |||
83 | if (f2fs_gc(sbi)) | 83 | if (f2fs_gc(sbi)) |
84 | wait_ms = gc_th->no_gc_sleep_time; | 84 | wait_ms = gc_th->no_gc_sleep_time; |
85 | 85 | ||
86 | /* balancing prefree segments */ | 86 | /* balancing f2fs's metadata periodically */ |
87 | if (excess_prefree_segs(sbi)) | 87 | f2fs_balance_fs_bg(sbi); |
88 | f2fs_sync_fs(sbi->sb, true); | ||
89 | 88 | ||
90 | } while (!kthread_should_stop()); | 89 | } while (!kthread_should_stop()); |
91 | return 0; | 90 | return 0; |