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 <>
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);
if (!page)
return -ENOMEM;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment