1. 13 Oct, 2002 7 commits
    • Andrew Morton's avatar
      [PATCH] page freeing function for swsusp · 8ead40f5
      Andrew Morton authored
      Software suspend needs a way of forcing page reclaim, up to the point
      where 50% of memory is free.
      
      This patch implements a function to do that:
      
      	int shrink_all_memory(int nr_pages);
      
      Will attempt to reclaim `nr_pages' pages and return them to the free
      pages pool.  It returns the number of pages which it actually freed.
      
      If called with a "large" number of pages it will only free up to a few
      hundred, so the caller needs to loop on it.
      
      If it returns zero then there is no point in calling it again.
      8ead40f5
    • Andrew Morton's avatar
      [PATCH] direct-io bio_add_page fix · 5aa6ba1a
      Andrew Morton authored
      Patch from Badari Pulavarty
      
      There was a corner case in the conversion of direct-io to use
      bio_add_page() where we would start a new page out at the wrong sector
      number.
      
      Fix that by explicitly passing in the current page's starting sector,
      and use that in the new BIO if we have to open a new one.
      
      Fix an error-path page->count leak in dio_bio_add_page().
      5aa6ba1a
    • Andrew Morton's avatar
      [PATCH] /proc/meminfo alterations for hugetlbpages · 75a08275
      Andrew Morton authored
      The patch from Rohit and David M-T changes the hugetlb page info in
      /proc/meminfo slightly.
      
      It makes the identifiers a little clearer while ensuring that we don't
      add any identifiers which have whitespace.  glibc is/shall be parsing
      this information to determine the size and alignment requirements of
      the hugetlb pages.
      
      This basically means that procfs is a requirement for successful
      hugetlb page usage.  Not very nice, but I suspect real-world userspace
      fails without procfs anyway.
      75a08275
    • Andrew Morton's avatar
      [PATCH] n_r3964.c fix · 682134c5
      Andrew Morton authored
      - drivers/char/n_r3964.c does not compile.  r3964_open() is doing an
        INIT_LIST_HEAD() on a timer->list.  But timer's don't have a `list'
        any more.
      
        Do an init_timer() instead.
      682134c5
    • Andrew Morton's avatar
      [PATCH] scsi compile fix · a4561352
      Andrew Morton authored
      I'm getting a compile failure in scsi_syms.c because it doesn't know
      about the new scsi_set_medium_removal().
      a4561352
    • Linus Torvalds's avatar
      "tv_sec" is unsigned long. · a301c237
      Linus Torvalds authored
      a301c237
    • Matthew Dharm's avatar
      [PATCH] Fix SCSI mode sense size · cc75cd5e
      Matthew Dharm authored
      I'm suprised that this didn't cause errors for more people -- a
      MODE_SENSE request for 128 bytes with a stated buffer length of 24
      bytes.
      
      Fix: Make the buffer length match the size of the request.
      cc75cd5e
  2. 12 Oct, 2002 33 commits