lkml.org 
[lkml]   [2002]   [May]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    SubjectRe: suspend-to-{RAM,disk} for 2.5.17
    Hi!

    > > Applied. Nothing needed but some time for me to look through it.
    >
    > Well, I may have to revert that.

    Sorry about that. Safety check that should not be needed.

    > mm/mm.o: In function `rw_swap_page':
    > mm/mm.o(.text+0xaeb2): undefined reference to `suspend_device'
    >
    > Please send me a fix asap.

    This fixes it. I also broke compilation in ACPI but not SWSUSP case
    (but it ate disks before, so ... :-).

    Pavel

    --- linux-swsusp.linus/mm/page_io.c Tue May 21 23:33:38 2002
    +++ linux-swsusp/mm/page_io.c Wed May 22 01:20:04 2002
    @@ -86,15 +86,11 @@
    * - it's marked as being swap-cache
    * - it's associated with the swap inode
    */
    -extern long suspend_device;
    void rw_swap_page(int rw, struct page *page)
    {
    swp_entry_t entry;

    entry.val = page->index;
    -
    - if (suspend_device)
    - panic("I refuse to corrupt memory/swap.");

    if (!PageLocked(page))
    PAGE_BUG(page);

    --
    (about SSSCA) "I don't say this lightly. However, I really think that the U.S.
    no longer is classifiable as a democracy, but rather as a plutocracy." --hpa
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 13:26    [W:0.025 / U:1.016 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site