Commit 05d9bac3 authored by Andrew Morton's avatar Andrew Morton Committed by Christoph Hellwig

[PATCH] fix reverse map accounting leak

From Hugh Dickins.  Fix a leak in the /proc/meminfo:ReverseMaps
accounting.
parent c9d3808f
...@@ -447,6 +447,7 @@ int try_to_unmap(struct page * page) ...@@ -447,6 +447,7 @@ int try_to_unmap(struct page * page)
ret = try_to_unmap_one(page, page->pte.direct); ret = try_to_unmap_one(page, page->pte.direct);
if (ret == SWAP_SUCCESS) { if (ret == SWAP_SUCCESS) {
page->pte.direct = 0; page->pte.direct = 0;
dec_page_state(nr_reverse_maps);
ClearPageDirect(page); ClearPageDirect(page);
} }
goto out; goto out;
......
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