[PATCH] debug: check page refcount in __free_pages_ok()
Add a BUG() check to __free_pages_ok() - to catch someone freeing a page which has a non-zero refcount. Actually, this check is mainly to catch someone (ie: shrink_cache()) incrementing a page's refcount shortly after it has been freed Also clean up __free_pages_ok() a bit and convert lots of BUGs to BUG_ON.
Showing
Please register or sign in to comment