Commit 510184c8 authored by Jaegeuk Kim's avatar Jaegeuk Kim
Browse files

f2fs: do not skip any writes under memory pressure



Under memory pressure, let's avoid skipping data writes.
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent 2f97c326
......@@ -711,6 +711,9 @@ static inline unsigned int max_hw_blocks(struct f2fs_sb_info *sbi)
*/
static inline int nr_pages_to_skip(struct f2fs_sb_info *sbi, int type)
{
if (sbi->sb->s_bdi->dirty_exceeded)
return 0;
if (type == DATA)
return sbi->blocks_per_seg;
else if (type == NODE)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment