* [PATCH] mm/vmscan: make global_reclaim() inline
@ 2013-08-22 5:39 larmbr
2013-09-03 23:02 ` Johannes Weiner
0 siblings, 1 reply; 2+ messages in thread
From: larmbr @ 2013-08-22 5:39 UTC (permalink / raw)
To: linux-mm; +Cc: mgorman, riel, mhocko, akpm, linux-kernel
Though Gcc is likely to inline them, we should better
explictly do it manually, and also, this serve to document
this fact.
Signed-off-by: Zhan Jianyu <nasa4836@gmail.com>
---
mm/vmscan.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/mm/vmscan.c b/mm/vmscan.c
index 1de652d..1946d7d 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -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 majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] mm/vmscan: make global_reclaim() inline
2013-08-22 5:39 [PATCH] mm/vmscan: make global_reclaim() inline larmbr
@ 2013-09-03 23:02 ` Johannes Weiner
0 siblings, 0 replies; 2+ messages in thread
From: Johannes Weiner @ 2013-09-03 23:02 UTC (permalink / raw)
To: larmbr; +Cc: linux-mm, mgorman, riel, mhocko, akpm, linux-kernel
On Thu, Aug 22, 2013 at 01:39:56PM +0800, larmbr wrote:
> 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 majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-09-03 23:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-22 5:39 [PATCH] mm/vmscan: make global_reclaim() inline larmbr
2013-09-03 23:02 ` Johannes Weiner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).