From: Jaegeuk Kim Date: Tue, 12 Nov 2013 05:49:56 +0000 (+0900) Subject: f2fs: add key functions for small discards X-Git-Tag: v3.14-rc1~122^2~91 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b29555505d81e496fdbd125190c8043f3c09a83c;p=pandora-kernel.git f2fs: add key functions for small discards This patch adds key functions to activate the small discard feature. Note that this procedure is conducted during the checkpoint only. In flush_sit_entries(), when a new dirty sit entry is flushed, f2fs calls add_discard_addrs() which searches candidates to be discarded. The candidates should be marked *invalidated* and also previous checkpoint recognizes it as *valid*. At the end of a checkpoint procedure, f2fs throws discards based on the discard entry list. Signed-off-by: Jaegeuk Kim --- Reading git-diff-tree failed