diff options
author | 2011-08-10 12:56:49 -0500 | |
---|---|---|
committer | 2011-08-23 14:52:20 -0700 | |
commit | c5f5c4db393837ebb2ae47bf061d70e498f48f8c (patch) | |
tree | e3b8823d57cd884d19ce2c98647ea32bd9b01a9c /tools/perf/scripts/python/syscall-counts.py | |
parent | staging: brcm80211: SPARC build error fix (diff) | |
download | linux-dev-c5f5c4db393837ebb2ae47bf061d70e498f48f8c.tar.xz linux-dev-c5f5c4db393837ebb2ae47bf061d70e498f48f8c.zip |
staging: zcache: fix crash on high memory swap
zcache_put_page() was modified to pass page_address(page) instead of the
actual page structure. In combination with the function signature changes
to tmem_put() and zcache_pampd_create(), zcache_pampd_create() tries to
(re)derive the page structure from the virtual address. However, if the
original page is a high memory page (or any unmapped page), this
virt_to_page() fails because the page_address() in zcache_put_page()
returned NULL.
This patch changes zcache_put_page() and zcache_get_page() to pass
the page structure instead of the page's virtual address, which
may or may not exist.
Signed-off-by: Seth Jennings <sjenning@linux.vnet.ibm.com>
Acked-by: Dan Magenheimer <dan.magenheimer@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions