Skip to contentSkip to conversation

mm/vmscan: make global_reclaim() inline

PATCH In review larmbr 2 participants 2 messages Aug 22, 2013 – Sep 3, 2013

Subsystems (3)
lore
Share & tools
lore

larmbr

author
#0 lore raw

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
index 1de652d..1946d7d 100644
@@ -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>