summaryrefslogtreecommitdiff
path: root/mm/filemap.h
diff options
context:
space:
mode:
authorChandra Seetharaman <sekharan@us.ibm.com>2006-09-29 02:01:24 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2006-09-29 09:18:22 -0700
commit40c99aae23529f3d069ae08836ae46fadb3fd2bd (patch)
tree5172ca1dca669de3ddc2a6aacc79e41667204aea /mm/filemap.h
parent153dcc54df826d2f8413c026313cba673c6bcc5b (diff)
downloadlinux-3.10-40c99aae23529f3d069ae08836ae46fadb3fd2bd.tar.gz
linux-3.10-40c99aae23529f3d069ae08836ae46fadb3fd2bd.tar.bz2
linux-3.10-40c99aae23529f3d069ae08836ae46fadb3fd2bd.zip
[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 <sekharan@us.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm/filemap.h')
0 files changed, 0 insertions, 0 deletions