[PATCH] f2fs: Modify do_garbage_collect() to collect all the segs in once

2013-07-08 Thread Gu Zheng
Current do_garbage_collect() collect per segment per time. If there are more than one segments in section, we need to call do_garbage_collect() many times to collect all the segments(current is a for loop). We can move the loop into the do_garbage_collect(), so that we can collect all the segs of

[PATCH] f2fs: Modify do_garbage_collect() to collect all the segs in once

2013-07-08 Thread Gu Zheng
Current do_garbage_collect() collect per segment per time. If there are more than one segments in section, we need to call do_garbage_collect() many times to collect all the segments(current is a for loop). We can move the loop into the do_garbage_collect(), so that we can collect all the segs of