commit | 06e1bc05cad8d06860b52c79d4669483c7e39a4f | [log] [tgz] |
---|---|---|
author | Jaegeuk Kim <jaegeuk@kernel.org> | Wed May 13 14:35:14 2015 -0700 |
committer | Jaegeuk Kim <jaegeuk@kernel.org> | Mon Jun 01 16:20:54 2015 -0700 |
tree | 0f2477b99923f231c45205d5d444baa122a1b8fb | |
parent | 912a83b5096eb4a5d8d95124d70585e0e861c564 [diff] |
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>