]> git.baikalelectronics.ru Git - kernel.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)
commit8ad633826dae35a9ac63097fbc3fc4a3d93e4bb8
tree9d5a10993ce88b21141911f4cc76deee3b3fd84d
parent140986625f841a3793664e6815c3c3c8115d1e44
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