projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
571dba5
)
ceph: fix num_pages_free accounting in pagelist
author
Sage Weil
<sage@newdream.net>
Tue, 5 Oct 2010 19:03:23 +0000
(12:03 -0700)
committer
Sage Weil
<sage@newdream.net>
Wed, 20 Oct 2010 22:38:23 +0000
(15:38 -0700)
Decrement the free page counter when removing a page from the free_list.
Signed-off-by: Sage Weil <sage@newdream.net>
net/ceph/pagelist.c
patch
|
blob
|
history
diff --git
a/net/ceph/pagelist.c
b/net/ceph/pagelist.c
index b8cbc456d0bbe0d68d946fa2d73891ce8064a6d3..13cb409a7bba13a2dd248c7a7dd25b9c00253370 100644
(file)
--- 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;