aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/ceph/pagelist.c1
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;