diff options
author | Sage Weil <sage@newdream.net> | 2010-10-05 15:03:23 -0400 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2010-10-20 18:38:23 -0400 |
commit | 240634e9b3a8ae2a9e2b7effeea3b9a5b30d68fb (patch) | |
tree | 5e6e5f9e09644ee0b1587189b1c4aef2b914be9a /net | |
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>
Diffstat (limited to 'net')
-rw-r--r-- | net/ceph/pagelist.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ceph/pagelist.c b/net/ceph/pagelist.c index b8cbc456d0bb..13cb409a7bba 100644 --- a/net/ceph/pagelist.c +++ b/net/ceph/pagelist.c | |||
@@ -37,6 +37,7 @@ static int ceph_pagelist_addpage(struct ceph_pagelist *pl) | |||
37 | } else { | 37 | } else { |
38 | page = list_first_entry(&pl->free_list, struct page, lru); | 38 | page = list_first_entry(&pl->free_list, struct page, lru); |
39 | list_del(&page->lru); | 39 | list_del(&page->lru); |
40 | --pl->num_pages_free; | ||
40 | } | 41 | } |
41 | if (!page) | 42 | if (!page) |
42 | return -ENOMEM; | 43 | return -ENOMEM; |