From: Sage Weil Date: Tue, 5 Oct 2010 19:03:23 +0000 (-0700) Subject: ceph: fix num_pages_free accounting in pagelist X-Git-Tag: v2.6.37-rc3~2^2~20 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=240634e9b3a8ae2a9e2b7effeea3b9a5b30d68fb;p=platform%2Fkernel%2Flinux-3.10.git 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 --- 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 @@ 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;