Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b2955550 authored by Jaegeuk Kim's avatar Jaegeuk Kim
Browse files

f2fs: add key functions for small discards



This patch adds key functions to activate the small discard feature.

Note that this procedure is conducted during the checkpoint only.

In flush_sit_entries(), when a new dirty sit entry is flushed, f2fs calls
add_discard_addrs() which searches candidates to be discarded.
The candidates should be marked *invalidated* and also previous checkpoint
recognizes it as *valid*.

At the end of a checkpoint procedure, f2fs throws discards based on the
discard entry list.

Signed-off-by: default avatarJaegeuk Kim <jaegeuk.kim@samsung.com>
parent 7fd9e544
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment