]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: invalidate temporary meta page
authorChao Yu <chao2.yu@samsung.com>
Tue, 28 Jul 2015 10:36:47 +0000 (18:36 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 5 Aug 2015 15:19:21 +0000 (08:19 -0700)
commitae1d2d76fc643ac6b3ab0763f3b326d8ce251b6f
treeb9709c15f56af0c3d76dd717033a1e08e25ac2ee
parent5ada013a5deb5c10e9fd613febbcf516afc2128b
f2fs: invalidate temporary meta page

To avoid meeting garbage data in next free node block at the end of warm
node chain when doing recovery, we will try to zero out that invalid block.

If the device is not support discard, our way for zeroing out block is:
grabbing a temporary zeroed page in meta inode, then, issue write request
with this page.

But, we forget to release that temporary page, so our memory usage will
increase without gaining any hit ratio benefit, so it's better to free it
for saving memory.

Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/checkpoint.c
fs/f2fs/f2fs.h
fs/f2fs/recovery.c
fs/f2fs/segment.c