diff options
author | Sahitya Tummala <stummala@codeaurora.org> | 2020-06-02 18:11:47 +0530 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2020-06-04 11:45:09 -0700 |
commit | e78790f84a5417287965a06cd4dea85df0743935 (patch) | |
tree | f93d87b57aa2c9f54ced0549316e62b7034834a6 /lib | |
parent | ca7f76e680745d3b8a386638045f85dac1c4b2f4 (diff) | |
download | linux-e78790f84a5417287965a06cd4dea85df0743935.tar.gz linux-e78790f84a5417287965a06cd4dea85df0743935.tar.bz2 linux-e78790f84a5417287965a06cd4dea85df0743935.zip |
f2fs: fix retry logic in f2fs_write_cache_pages()
In case a compressed file is getting overwritten, the current retry
logic doesn't include the current page to be retried now as it sets
the new start index as 0 and new end index as writeback_index - 1.
This causes the corresponding cluster to be uncompressed and written
as normal pages without compression. Fix this by allowing writeback to
be retried for the current page as well (in case of compressed page
getting retried due to index mismatch with cluster index). So that
this cluster can be written compressed in case of overwrite.
Also, align f2fs_write_cache_pages() according to the change -
<64081362e8ff>("mm/page-writeback.c: fix range_cyclic writeback vs
writepages deadlock").
Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions