OSDN Git Service

f2fs: give correct trimmed blocks in fstrim
authorChao Yu <yuchao0@huawei.com>
Sat, 28 Oct 2017 08:52:32 +0000 (16:52 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 16 Nov 2017 06:02:20 +0000 (22:02 -0800)
commit90c28a18d2a499c53dbff24b382d1b8e4e9547d3
treee768e639f7c72679c2a1ad6c4166c1de0e4b63cd
parent5612922fb0acb33f54fc0a67837b3510dde4b00b
f2fs: give correct trimmed blocks in fstrim

We have supported to issue discard in specified range during fstrim,
it needs to return caller with successfully trimmed bytes in that
range instead of bytes of invalid blocks which are scanned in
checkpoint.

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