f2fs: add a slab cache entry for small discards
authorJaegeuk Kim <jaegeuk.kim@samsung.com>
Fri, 15 Nov 2013 04:55:58 +0000 (13:55 +0900)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Mon, 23 Dec 2013 01:18:00 +0000 (10:18 +0900)
commit7fd9e544fbb10c6ae4b4953f6063560c8eeae6e8
tree886a26e62f058fe48656335374657c402dfb3da0
parente81c93cf8c7bd413898798cf8c67f18b1fef3360
f2fs: add a slab cache entry for small discards

This patch adds a slab cache entry for small discards.

Each entry consists of:

struct discard_entry {
struct list_head list; /* list head */
block_t blkaddr; /* block address to be discarded */
int len; /* # of consecutive blocks of the discard */
};

Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fs/f2fs/f2fs.h
fs/f2fs/segment.c
fs/f2fs/super.c