f2fs: don't drop any page on f2fs_cp_error() case
We still provide readdir() after shtudown, so we should keep pages to avoid additional IOs. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
0037c639e6
commit
2494cc7c0b
1 changed files with 2 additions and 5 deletions
|
@ -1380,11 +1380,8 @@ static int __write_node_page(struct page *page, bool atomic, bool *submitted,
|
||||||
|
|
||||||
trace_f2fs_writepage(page, NODE);
|
trace_f2fs_writepage(page, NODE);
|
||||||
|
|
||||||
if (unlikely(f2fs_cp_error(sbi))) {
|
if (unlikely(f2fs_cp_error(sbi)))
|
||||||
dec_page_count(sbi, F2FS_DIRTY_NODES);
|
goto redirty_out;
|
||||||
unlock_page(page);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (unlikely(is_sbi_flag_set(sbi, SBI_POR_DOING)))
|
if (unlikely(is_sbi_flag_set(sbi, SBI_POR_DOING)))
|
||||||
goto redirty_out;
|
goto redirty_out;
|
||||||
|
|
Loading…
Add table
Reference in a new issue