diff options
| author | Andrew Morton <akpm@digeo.com> | 2003-05-18 20:31:09 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2003-05-18 20:31:09 -0700 |
| commit | c6c9afeb48604ffd7d5ead9d0118e1195f9a64d5 (patch) | |
| tree | d36794d73bb71d3384c1c623d6f4f21364154a2e /include/linux | |
| parent | 344bf5a0a77072449bb6b6492b0617f98077eeee (diff) | |
[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.
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/mm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h index 46b7f07a0069..492bc8aeb053 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -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); \ }) |
