aboutsummaryrefslogtreecommitdiffstats
path: root/fs/f2fs/data.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/f2fs/data.c')
-rw-r--r--fs/f2fs/data.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c
index b5cd6d1c9320..6b89b2517edf 100644
--- a/fs/f2fs/data.c
+++ b/fs/f2fs/data.c
@@ -863,7 +863,8 @@ static int f2fs_write_data_pages(struct address_space *mapping,
863 return 0; 863 return 0;
864 864
865 if (S_ISDIR(inode->i_mode) && wbc->sync_mode == WB_SYNC_NONE && 865 if (S_ISDIR(inode->i_mode) && wbc->sync_mode == WB_SYNC_NONE &&
866 get_dirty_dents(inode) < nr_pages_to_skip(sbi, DATA)) 866 get_dirty_dents(inode) < nr_pages_to_skip(sbi, DATA) &&
867 available_free_memory(sbi, DIRTY_DENTS))
867 goto skip_write; 868 goto skip_write;
868 869
869 diff = nr_pages_to_write(sbi, DATA, wbc); 870 diff = nr_pages_to_write(sbi, DATA, wbc);