Chao Yu bd494cafc7 f2fs: fix to avoid double unlock
On image that has verity and compression feature, if compressed pages
and non-compressed pages are mixed in one bio, we may double unlock
non-compressed page in below flow:

- f2fs_post_read_work
 - f2fs_decompress_work
  - f2fs_decompress_bio
   - __read_end_io
    - unlock_page
 - fsverity_enqueue_verify_work
  - f2fs_verity_work
   - f2fs_verify_bio
    - unlock_page

So it should skip handling non-compressed page in f2fs_decompress_work()
if verity is on.

Besides, add missing dec_page_count() in f2fs_verify_bio().

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2020-04-06 13:05:32 -07:00
..
2019-05-08 21:36:51 -07:00
2018-10-26 11:21:57 -07:00
2020-04-06 13:05:32 -07:00
2020-04-06 13:05:26 -07:00
2020-04-06 13:05:30 -07:00
2020-04-06 13:05:29 -07:00
2018-10-26 11:21:57 -07:00
2020-01-28 10:37:32 -08:00
2020-04-06 13:05:28 -07:00
2020-04-06 13:05:26 -07:00
2020-04-06 13:05:25 -07:00
2020-04-06 13:05:26 -07:00
2018-10-26 11:21:57 -07:00