From: Chandra Seetharaman Date: Fri, 29 Sep 2006 09:01:24 +0000 (-0700) Subject: [PATCH] remove static variable mm/page-writeback.c:total_pages X-Git-Tag: v2.6.19-rc1~683 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40c99aae23529f3d069ae08836ae46fadb3fd2bd;p=pandora-kernel.git [PATCH] remove static variable mm/page-writeback.c:total_pages page-writeback.c has a static local variable "total_pages", which is the total number of pages in the system. There is a global variable "vm_total_pages", which is the total number of pages the VM controls. Both are assigned from the return value of nr_free_pagecache_pages(). This patch removes the local variable and uses the global variable in that place. One more issue with the local static variable "total_pages" is that it is not updated when new pages are hot-added. Since vm_total_pages is updated when new pages are hot-added, this patch fixes that problem too. Signed-off-by: Chandra Seetharaman Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed