f2fs: issue discard with finally produced len and minlen
authorJaegeuk Kim <jaegeuk@kernel.org>
Fri, 1 May 2015 05:50:06 +0000 (22:50 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 28 May 2015 22:41:39 +0000 (15:41 -0700)
commit836b5a6356ac49a4631c06bc87b0ea02f41623ca
treeee0ff00153fef33169b5c328f4a1fe64235cbbd5
parenta66cdd985532e69999b79249cd3b4a6bccd0f84b
f2fs: issue discard with finally produced len and minlen

This patch determines to issue discard commands by comparing given minlen and
the length of produced final candidates.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/checkpoint.c
fs/f2fs/f2fs.h
fs/f2fs/segment.c