Commit e5c6d30e authored by Christoph Hellwig's avatar Christoph Hellwig

[PATCH] fix compilation for !CONFIG_SWAP

We must always use total_swapcache_pages instead of
swapper_space.nrpages in code that doesn't depend on CONFIG_SWAP
parent 8be6948a
...@@ -180,8 +180,8 @@ static int meminfo_read_proc(char *page, char **start, off_t off, ...@@ -180,8 +180,8 @@ static int meminfo_read_proc(char *page, char **start, off_t off,
K(i.freeram), K(i.freeram),
K(i.sharedram), K(i.sharedram),
K(i.bufferram), K(i.bufferram),
K(ps.nr_pagecache-swapper_space.nrpages-i.bufferram), K(ps.nr_pagecache-total_swapcache_pages-i.bufferram),
K(swapper_space.nrpages), K(total_swapcache_pages),
K(active), K(active),
K(inactive), K(inactive),
K(i.totalhigh), K(i.totalhigh),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment