memcg: correct memcg_hierarchical_free_pages() return type
Subsystems (2)
PATCH 1/1 memcg: correct memcg_hierarchical_free_pages() return type
memcg_hierarchical_free_pages() returns a page count and thus should return unsigned long to be consistent with the rest of mm code.
Signed-off-by Greg Thelen <[email protected]>
--- mm/memcontrol.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
mm/memcontrol.c +1 -1
@@ -1340,7 +1340,7 @@ static long mem_cgroup_local_page_stat(struct mem_cgroup *mem,* use_hierarchy is set, then this involves parent mem cgroups to find the * cgroup with the smallest free space. */ -static unsigned long long +static unsigned long memcg_hierarchical_free_pages (struct mem_cgroup *mem) {unsigned long free, min_free;
Signature · 8 lines
1.7.3.1 -- 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/ . Fight unfair telecom policy in Canada: sign http://dissolvethecrtc.ca/ Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 5 lines · Greg Thelen
memcg_hierarchical_free_pages()returns a page count and thus should return unsigned long to be consistent with the rest of mm code.Signed-off-by Greg Thelen <[email protected]>
Reviewed-by Johannes Weiner <[email protected]>