提交 240634e9 编写于 作者: S 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: NSage Weil <sage@newdream.net>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册