Jaegeuk Kim 81eb8d6e28 f2fs: reclaim prefree segments periodically
Previously, f2fs postpones reclaiming prefree segments into free segments
as much as possible.
However, if user writes and deletes a bunch of data without any sync or fsync
calls, some flash storages can suffer from garbage collections.

So, this patch adds the reclaiming codes to f2fs_write_node_pages and background
GC thread.

If there are a lot of prefree segments, let's do checkpoint so that f2fs
submits discard commands for the prefree regions to the flash storage.

Signed-off-by: Changman Lee <cm224.lee@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
2013-10-25 16:54:37 +09:00
..
2013-06-11 16:01:03 +09:00
2012-12-11 13:43:42 +09:00
2013-10-25 16:54:37 +09:00
2013-07-30 15:17:03 +09:00
2013-09-05 13:50:32 +09:00
2013-06-11 16:01:03 +09:00
2012-12-11 13:43:42 +09:00
2013-08-09 14:57:56 +09:00
2013-10-25 16:54:37 +09:00
2013-10-25 16:54:37 +09:00
2013-08-26 20:15:23 +09:00