Re: [PATCH] f2fs: avoid frequent background GC

2013-04-24 Thread Namjae Jeon
Hi Jaegeuk, With the change in the value of GC_THREAD_NOGC_SLEEP_TIME to 60, we will need to rewrite the gc_thread_func(). As there will be several paths which will not be reached or will have no meaning after this change. Considering the cases: /* if return value is not zero, no victim was

[PATCH] f2fs: avoid frequent background GC

2013-04-24 Thread Jaegeuk Kim
If there is no victim segments selected by background GC, let's wait a little bit longer time to collect dirty segments. By default, let's give 10 minutes. Signed-off-by: Jaegeuk Kim --- fs/f2fs/gc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/f2fs/gc.h

[PATCH] f2fs: avoid frequent background GC

2013-04-24 Thread Jaegeuk Kim
If there is no victim segments selected by background GC, let's wait a little bit longer time to collect dirty segments. By default, let's give 10 minutes. Signed-off-by: Jaegeuk Kim jaegeuk@samsung.com --- fs/f2fs/gc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

Re: [PATCH] f2fs: avoid frequent background GC

2013-04-24 Thread Namjae Jeon
Hi Jaegeuk, With the change in the value of GC_THREAD_NOGC_SLEEP_TIME to 60, we will need to rewrite the gc_thread_func(). As there will be several paths which will not be reached or will have no meaning after this change. Considering the cases: /* if return value is not zero, no victim was