f2fs: fix small discards not to issue redundantly
authorJaegeuk Kim <jaegeuk@kernel.org>
Fri, 12 Dec 2014 21:53:41 +0000 (13:53 -0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Sat, 10 Jan 2015 01:02:22 +0000 (17:02 -0800)
The ckpt_valid_map and cur_valid_map are synced by seg_info_to_raw_sit.

In the case of small discards, the candidates are selected before sync,
while fitrim selects candidates after sync.

So, for small discards, we need to add candidates only just being obsoleted.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>

No differences found