]> git.karo-electronics.de Git - linux-beck.git/commit
f2fs: truncate data blocks for orphan inode
authorJaegeuk Kim <jaegeuk@kernel.org>
Wed, 13 May 2015 21:35:14 +0000 (14:35 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 1 Jun 2015 23:20:54 +0000 (16:20 -0700)
commit06e1bc05cad8d06860b52c79d4669483c7e39a4f
tree0f2477b99923f231c45205d5d444baa122a1b8fb
parent912a83b5096eb4a5d8d95124d70585e0e861c564
f2fs: truncate data blocks for orphan inode

As Hu reported, F2FS has a space leak problem, when conducting:

1) format a 4GB f2fs partition
2) dd a 3G file,
3) unlink it.

So, when doing f2fs_drop_inode(), we need to truncate data blocks
before skipping it.
We can also drop unused caches assigned to each inode.

Reported-by: hujianyang <hujianyang@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/super.c