Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 240634e9 authored by Sage Weil's avatar Sage Weil
Browse files

ceph: fix num_pages_free accounting in pagelist



Decrement the free page counter when removing a page from the free_list.

Signed-off-by: default avatarSage Weil <sage@newdream.net>
parent 571dba52
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;