commit | 240634e9b3a8ae2a9e2b7effeea3b9a5b30d68fb | [log] [tgz] |
---|---|---|
author | Sage Weil <sage@newdream.net> | Tue Oct 05 12:03:23 2010 -0700 |
committer | Sage Weil <sage@newdream.net> | Wed Oct 20 15:38:23 2010 -0700 |
tree | 5e6e5f9e09644ee0b1587189b1c4aef2b914be9a | |
parent | 571dba52a34015a5a7aa5d480a86936878444a6f [diff] |
ceph: fix num_pages_free accounting in pagelist Decrement the free page counter when removing a page from the free_list. Signed-off-by: Sage Weil <sage@newdream.net>
diff --git a/net/ceph/pagelist.c b/net/ceph/pagelist.c index b8cbc45..13cb409 100644 --- a/net/ceph/pagelist.c +++ b/net/ceph/pagelist.c
@@ -37,6 +37,7 @@ } else { page = list_first_entry(&pl->free_list, struct page, lru); list_del(&page->lru); + --pl->num_pages_free; } if (!page) return -ENOMEM;