diff options
Diffstat (limited to 'mm/rmap.c')
-rw-r--r-- | mm/rmap.c | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -537,9 +537,6 @@ void page_add_new_anon_rmap(struct page *page, | |||
537 | */ | 537 | */ |
538 | void page_add_file_rmap(struct page *page) | 538 | void page_add_file_rmap(struct page *page) |
539 | { | 539 | { |
540 | BUG_ON(PageAnon(page)); | ||
541 | BUG_ON(!pfn_valid(page_to_pfn(page))); | ||
542 | |||
543 | if (atomic_inc_and_test(&page->_mapcount)) | 540 | if (atomic_inc_and_test(&page->_mapcount)) |
544 | __inc_page_state(nr_mapped); | 541 | __inc_page_state(nr_mapped); |
545 | } | 542 | } |