From: Chao Yu Date: Sat, 28 Feb 2015 09:23:30 +0000 (+0800) Subject: f2fs: fix to issue small discard in real-time mode discard X-Git-Tag: omap-for-v4.2/o2_dc~90^2~42 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b28c3f94933dae663eeca24637bf9ff962bf02dc;p=pandora-kernel.git f2fs: fix to issue small discard in real-time mode discard Now in f2fs, we share functions and structures for batch mode and real-time mode discard. For real-time mode discard, in shared function add_discard_addrs, we will use uninitialized trim_minlen in struct cp_control to compare with length of contiguous free blocks to decide whether skipping discard fragmented freespace or not, this makes us ignore small discard sometimes. Fix it. Signed-off-by: Chao Yu Reviewed-by : Changman Lee Signed-off-by: Jaegeuk Kim --- Reading git-diff-tree failed