f2fs: Fix accounting for unusable blocks
authorDaniel Rosenberg <drosen@google.com>
Thu, 30 May 2019 00:49:05 +0000 (17:49 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 3 Jun 2019 20:27:47 +0000 (13:27 -0700)
commita4c3ecaaadac5693f555cfef1c9eecf4c39df818
tree2f710788443b076cd361e9767b0129acd4a9dc1a
parent9a9aecaad92d4fba0e2682ca6897d3a5aeabf123
f2fs: Fix accounting for unusable blocks

Fixes possible underflows when dealing with unusable blocks.

Signed-off-by: Daniel Rosenberg <drosen@google.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/f2fs.h