mirror of
https://github.com/torvalds/linux.git
synced 2024-11-27 06:31:52 +00:00
f2fs: remove else in f2fs_write_cache_pages()
As Christoph Hellwig point out: Please avoid the else by doing the goto in the branch. Signed-off-by: Yangtao Li <frank.li@vivo.com> Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
0b37ed21e3
commit
c948be797d
@ -3123,12 +3123,9 @@ continue_unlock:
|
||||
}
|
||||
|
||||
if (folio_test_writeback(folio)) {
|
||||
if (wbc->sync_mode != WB_SYNC_NONE)
|
||||
f2fs_wait_on_page_writeback(
|
||||
&folio->page,
|
||||
DATA, true, true);
|
||||
else
|
||||
if (wbc->sync_mode == WB_SYNC_NONE)
|
||||
goto continue_unlock;
|
||||
f2fs_wait_on_page_writeback(&folio->page, DATA, true, true);
|
||||
}
|
||||
|
||||
if (!folio_clear_dirty_for_io(folio))
|
||||
|
Loading…
Reference in New Issue
Block a user