Commit c6c9afeb authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] put_page_testzero() fix

From: William Lee Irwin III <wli@holomorphy.com>

put_page_testzero() does BUG_ON(page_count(page)) when its argument is p.
parent 344bf5a0
......@@ -218,7 +218,7 @@ struct page {
*/
#define put_page_testzero(p) \
({ \
BUG_ON(page_count(page) == 0); \
BUG_ON(page_count(p) == 0); \
atomic_dec_and_test(&(p)->count); \
})
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment