Skip to content

Commit

Permalink
ceph: fix num_pages_free accounting in pagelist
Browse files Browse the repository at this point in the history
Decrement the free page counter when removing a page from the free_list.

Signed-off-by: Sage Weil <[email protected]>
  • Loading branch information
liewegas committed Oct 20, 2010
1 parent 571dba5 commit 240634e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/ceph/pagelist.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 240634e

Please sign in to comment.