https://github.com/torvalds/linux
Revision 85a6cd03a97f04ffff7bfedfa3172894ca9a617b authored by Hugh Dickins on 10 March 2006, 01:33:34 UTC, committed by Linus Torvalds on 10 March 2006, 03:47:36 UTC
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>
1 parent 6218cf4
History
Tip revision: 85a6cd03a97f04ffff7bfedfa3172894ca9a617b authored by Hugh Dickins on 10 March 2006, 01:33:34 UTC
[PATCH] page_add_file_rmap(): remove BUG_ON()s
Tip revision: 85a6cd0
File Mode Size
Documentation
arch
block
crypto
drivers
fs
include
init
ipc
kernel
lib
mm
net
scripts
security
sound
usr
.gitignore -rw-r--r-- 424 bytes
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 87.5 KB
Kbuild -rw-r--r-- 1.2 KB
MAINTAINERS -rw-r--r-- 66.2 KB
Makefile -rw-r--r-- 43.8 KB
README -rw-r--r-- 15.1 KB
REPORTING-BUGS -rw-r--r-- 3.0 KB

README

back to top