Skip to content

Commit

Permalink
f2fs: don't drop any page on f2fs_cp_error() case
Browse files Browse the repository at this point in the history
We still provide readdir() after shtudown, so we should keep pages to avoid
additional IOs.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: khusika <khusikadhamar@gmail.com>
  • Loading branch information
Jaegeuk Kim authored and khusika committed Aug 9, 2018
1 parent 8a14acc commit eeeba44
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions fs/f2fs/node.c
Original file line number Diff line number Diff line change
Expand Up @@ -1381,11 +1381,8 @@ static int __write_node_page(struct page *page, bool atomic, bool *submitted,

trace_f2fs_writepage(page, NODE);

if (unlikely(f2fs_cp_error(sbi))) {
dec_page_count(sbi, F2FS_DIRTY_NODES);
unlock_page(page);
return 0;
}
if (unlikely(f2fs_cp_error(sbi)))
goto redirty_out;

if (unlikely(is_sbi_flag_set(sbi, SBI_POR_DOING)))
goto redirty_out;
Expand Down

0 comments on commit eeeba44

Please sign in to comment.