From: Jaegeuk Kim Date: Thu, 24 Oct 2013 04:31:34 +0000 (+0900) Subject: f2fs: reclaim prefree segments periodically X-Git-Tag: v3.13-rc1~113^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=81eb8d6e2869b119d4a7b8c02091c3779733a3ac;p=pandora-kernel.git 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 Signed-off-by: Jaegeuk Kim --- Reading git-diff-tree failed