]> git.karo-electronics.de Git - linux-beck.git/commit
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)
commitd7bc2484b8d4e580370c66ad93c4319225bd104d
treedfbd917d7add03c623e06dd6d4f635dea9f47457
parent1e84371ffeef451e8532e0cd04c2fe59ff10c514
f2fs: fix small discards not to issue redundantly

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>
fs/f2fs/segment.c