X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=mm%2Fgup.c;h=3ded6a5f26b259e859cba3a9f164cd1b6e8b235c;hb=5cd57f676bb946a00275408f0dd0d75dbc466d25;hp=aa09535cf4d47b439f86c947fba63b14dd819425;hpb=682a8e2b41effcaf2e80697e395d47f77c91273f;p=linux-2.6-microblaze.git diff --git a/mm/gup.c b/mm/gup.c index aa09535cf4d4..3ded6a5f26b2 100644 --- a/mm/gup.c +++ b/mm/gup.c @@ -1575,7 +1575,7 @@ finish_or_fault: * Returns NULL on any kind of failure - a hole must then be inserted into * the corefile, to preserve alignment with its headers; and also returns * NULL wherever the ZERO_PAGE, or an anonymous pte_none, has been found - - * allowing a hole to be left in the corefile to save diskspace. + * allowing a hole to be left in the corefile to save disk space. * * Called without mmap_lock (takes and releases the mmap_lock by itself). */ @@ -1593,10 +1593,6 @@ struct page *get_dump_page(unsigned long addr) FOLL_FORCE | FOLL_DUMP | FOLL_GET); if (locked) mmap_read_unlock(mm); - - if (ret == 1 && is_page_poisoned(page)) - return NULL; - return (ret == 1) ? page : NULL; } #endif /* CONFIG_ELF_CORE */