Commit 240634e9 authored by Sage Weil's avatar Sage Weil

ceph: fix num_pages_free accounting in pagelist

Decrement the free page counter when removing a page from the free_list.
Signed-off-by: default avatarSage Weil <sage@newdream.net>
parent 571dba52
......@@ -37,6 +37,7 @@ static int ceph_pagelist_addpage(struct ceph_pagelist *pl)
} else {
page = list_first_entry(&pl->free_list, struct page, lru);
list_del(&page->lru);
--pl->num_pages_free;
}
if (!page)
return -ENOMEM;
......
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