Skip to content
Commit d7bc2484 authored by Jaegeuk Kim's avatar Jaegeuk Kim
Browse files

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: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent 1e84371f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment