f2fs: add key functions for small discards
authorJaegeuk Kim <jaegeuk.kim@samsung.com>
Tue, 12 Nov 2013 05:49:56 +0000 (14:49 +0900)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Mon, 23 Dec 2013 01:18:00 +0000 (10:18 +0900)
commitb29555505d81e496fdbd125190c8043f3c09a83c
treec0043de3cbcea1f447c3414c1a5e63e007f2da2e
parent7fd9e544fbb10c6ae4b4953f6063560c8eeae6e8
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: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fs/f2fs/segment.c
This page took 0.024879 seconds and 5 git commands to generate.