Lines Matching refs:mem_size
51 unsigned long mem_size = 0; in f2fs_available_free_memory() local
66 mem_size = (nm_i->nid_cnt[FREE_NID] * in f2fs_available_free_memory()
68 res = mem_size < ((avail_ram * nm_i->ram_thresh / 100) >> 2); in f2fs_available_free_memory()
70 mem_size = (nm_i->nat_cnt[TOTAL_NAT] * in f2fs_available_free_memory()
72 res = mem_size < ((avail_ram * nm_i->ram_thresh / 100) >> 2); in f2fs_available_free_memory()
78 mem_size = get_pages(sbi, F2FS_DIRTY_DENTS); in f2fs_available_free_memory()
79 res = mem_size < ((avail_ram * nm_i->ram_thresh / 100) >> 1); in f2fs_available_free_memory()
84 mem_size += sbi->im[i].ino_num * in f2fs_available_free_memory()
86 mem_size >>= PAGE_SHIFT; in f2fs_available_free_memory()
87 res = mem_size < ((avail_ram * nm_i->ram_thresh / 100) >> 1); in f2fs_available_free_memory()
93 mem_size = (atomic_read(&eti->total_ext_tree) * in f2fs_available_free_memory()
97 res = mem_size < ((avail_ram * nm_i->ram_thresh / 100) >> 2); in f2fs_available_free_memory()
99 mem_size = (atomic_read(&dcc->discard_cmd_cnt) * in f2fs_available_free_memory()
101 res = mem_size < (avail_ram * nm_i->ram_thresh / 100); in f2fs_available_free_memory()