]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] page_add_file_rmap(): remove BUG_ON()s
authorHugh Dickins <hugh@veritas.com>
Fri, 10 Mar 2006 01:33:34 +0000 (17:33 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 10 Mar 2006 03:47:36 +0000 (19:47 -0800)
commit1bb212a6d48312aecd48ee244e6cdbc8e72e43fd
tree6dfcb724b0ed7b2cb9b33c0c18933f0d915bc966
parentff3603b504ef9514b9bedd9ed564f2d02f6e6453
[PATCH] page_add_file_rmap(): remove BUG_ON()s

Remove two early-development BUG_ONs from page_add_file_rmap.

The pfn_valid test (originally useful for checking that nobody passed an
artificial struct page) comes too late, since we already have the struct
page.

The PageAnon test (useful when anon was first distinguished from file rmap)
prevents ->nopage implementations from reusing ->mapping, which would
otherwise be available.

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/rmap.c