f2fs: fix to return exact trimmed size
authorJaegeuk Kim <jaegeuk@kernel.org>
Tue, 2 Jun 2015 22:48:20 +0000 (15:48 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 2 Jun 2015 22:48:20 +0000 (15:48 -0700)
commitf56aa1c57ea921e45bb6cf5d83a04cbc8f38fae5
treef3305833a495bda3db450441f7da855bb9bfcf6d
parentf62185d0e283e9d311e3ac1020f159d95f0aab39
f2fs: fix to return exact trimmed size

Now, we add all the candidates for trim commands and then finally issue
discard commands.
So, we should count the trimmed size in back-end.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/segment.c