]> asedeno.scripts.mit.edu Git - linux.git/commit
f2fs: use bitmap in discard_entry
authorChao Yu <yuchao0@huawei.com>
Tue, 28 Mar 2017 10:18:50 +0000 (18:18 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 5 Apr 2017 18:05:04 +0000 (11:05 -0700)
commita7eeb823854c4ab19765a25fabbda07fe27be177
tree9d5a10993ce88b21141911f4cc76deee3b3fd84d
parentf099405fc8d6c837487dcd6ab288073a44e6a91f
f2fs: use bitmap in discard_entry

This patch changes to use bitmap instead of extent in struct discard_entry
to indicate discard range in one segment, for fragmented space, this
implementation can save memory footprint.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/f2fs.h
fs/f2fs/segment.c