mm/vmscan: make global_reclaim() inline
Subsystems (3)
PATCH 1/1 mm/vmscan: make global_reclaim() inline
Though Gcc is likely to inline them, we should better explictly do it manually, and also, this serve to document this fact.
---mm/vmscan.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
mm/vmscan.c +2 -2
@@ -135,12 +135,12 @@ static LIST_HEAD(shrinker_list);static DECLARE_RWSEM (shrinker_rwsem);#ifdef CONFIG_MEMCG -static bool global_reclaim (struct scan_control *sc) +static inline bool global_reclaim (struct scan_control *sc) {return !sc->target_mem_cgroup; }#else -static bool global_reclaim (struct scan_control *sc) +static inline bool global_reclaim (struct scan_control *sc) {return true; }
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Johannes Weiner
maintainerQuoted 3 lines · larmbr
Though Gcc is likely to inline them, we should better explictly do it manually, and also, this serve to document this fact.
Why?
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>