Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 39316
b: refs/heads/master
c: b16bc64
h: refs/heads/master
v: v3
  • Loading branch information
Dave Jones authored and Linus Torvalds committed Oct 11, 2006
1 parent ff11d79 commit 2e08f23
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 469340236a7c9673df3e6a2425f559517f01464e
refs/heads/master: b16bc64d1aed40fb9cff9187061005b2a89b5d5d
5 changes: 2 additions & 3 deletions trunk/mm/rmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -576,15 +576,14 @@ void page_add_file_rmap(struct page *page)
void page_remove_rmap(struct page *page)
{
if (atomic_add_negative(-1, &page->_mapcount)) {
#ifdef CONFIG_DEBUG_VM
if (unlikely(page_mapcount(page) < 0)) {
printk (KERN_EMERG "Eeek! page_mapcount(page) went negative! (%d)\n", page_mapcount(page));
printk (KERN_EMERG " page->flags = %lx\n", page->flags);
printk (KERN_EMERG " page->count = %x\n", page_count(page));
printk (KERN_EMERG " page->mapping = %p\n", page->mapping);
BUG();
}
#endif
BUG_ON(page_mapcount(page) < 0);

/*
* It would be tidy to reset the PageAnon mapping here,
* but that might overwrite a racing page_add_anon_rmap
Expand Down

0 comments on commit 2e08f23

Please sign in to comment.