函数源码 |
Source File:include\linux\memcontrol.h |
Create Date:2022-07-27 06:56:22 |
首页 | Copyright©Brick |
346 347 348 349 350 351 352 353 354 355 356 357 | static inline unsigned long mem_cgroup_protection( struct mem_cgroup *memcg, bool in_low_reclaim) { if (mem_cgroup_disabled()) return 0; if (in_low_reclaim) return READ_ONCE(memcg->memory.emin); return max(READ_ONCE(memcg->memory.emin), READ_ONCE(memcg->memory.elow)); } |