f2fs: fix writecount false positive in releasing compress blocks
authorDaeho Jeong <daehojeong@google.com>
Mon, 12 Oct 2020 04:59:47 +0000 (13:59 +0900)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 14 Oct 2020 06:23:34 +0000 (23:23 -0700)
commit8c8cf26ae302cb9dd47935f705945c985f7f5348
treec5c2e386a611ebd31c9fb4cdfb0472fb274d528f
parentaf4b6b8edf6aad73ac385e06196fefa46c23e038
f2fs: fix writecount false positive in releasing compress blocks

In current condition check, if it detects writecount, it return -EBUSY
regardless of f_mode of the file. Fixed it.

Signed-off-by: Daeho Jeong <daehojeong@google.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/file.c