|
@@ -54,8 +54,6 @@ bool available_free_memory(struct f2fs_sb_info *sbi, int type)
|
|
res = mem_size < ((avail_ram * nm_i->ram_thresh / 100) >> 2);
|
|
res = mem_size < ((avail_ram * nm_i->ram_thresh / 100) >> 2);
|
|
if (excess_cached_nats(sbi))
|
|
if (excess_cached_nats(sbi))
|
|
res = false;
|
|
res = false;
|
|
- if (nm_i->nat_cnt > DEF_NAT_CACHE_THRESHOLD)
|
|
|
|
- res = false;
|
|
|
|
} else if (type == DIRTY_DENTS) {
|
|
} else if (type == DIRTY_DENTS) {
|
|
if (sbi->sb->s_bdi->wb.dirty_exceeded)
|
|
if (sbi->sb->s_bdi->wb.dirty_exceeded)
|
|
return false;
|
|
return false;
|