• Patrick Mochel's avatar
    [swsusp] Use BIO interface when reading from swap. · 774bc11f
    Patrick Mochel authored
    - bios are the preferred method for doing this type of stuff in 2.6. The 
      __bread() uses bio's in the end anyway. 
    
    - bios make it really easy to implement write functionality, so we are able
      to reset the swap signature immediately after checking it during resume.
      So, if something happens while resuming, we will still have valid swap to 
      use. 
    
    - Thanks to Jens for some help in getting it working several months ago.
    774bc11f
swsusp.c 24.3 KB