diff options
| author | Chao Yu <yuchao0@huawei.com> | 2016-08-21 23:21:31 +0800 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-04-13 12:33:59 +0200 |
| commit | 7fa5a067154019fe5b2d985aa8b001df1c467e74 (patch) | |
| tree | 9c1c6d64032eff74996a233d233e880df4ee42ed | |
| parent | e7f792505c21ab8a822d5519cdbc65d86bedb31a (diff) | |
f2fs: remove redundant judgement condition in available_free_memory
In available_free_memory, there are two same judgement conditions which
is used for checking NAT excess, remove one of them.
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
| -rw-r--r-- | fs/f2fs/node.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c index c6ffdf8cb..dbe471e94 100644 --- a/fs/f2fs/node.c +++ b/fs/f2fs/node.c @@ -64,8 +64,6 @@ bool available_free_memory(struct f2fs_sb_info *sbi, int type) res = mem_size < ((avail_ram * nm_i->ram_thresh / 100) >> 2); if (excess_cached_nats(sbi)) res = false; - if (nm_i->nat_cnt > DEF_NAT_CACHE_THRESHOLD) - res = false; } else if (type == DIRTY_DENTS) { if (sbi->sb->s_bdi->dirty_exceeded) return false; |
