1. 02 Mar, 2013 3 commits
  2. 11 Feb, 2013 3 commits
    • Dan Magenheimer's avatar
      staging/zcache: Fix/improve zcache writeback code, tie to a config option · 76426daf
      Dan Magenheimer authored
      It was observed by Andrea Arcangeli in 2011 that zcache can get "full"
      and there must be some way for compressed swap pages to be (uncompressed
      and then) sent through to the backing swap disk.  A prototype of this
      functionality, called "unuse", was added in 2012 as part of a major update
      to zcache (aka "zcache2"), but was left unfinished due to the unfortunate
      temporary fork of zcache.
      
      This earlier version of the code had an unresolved memory leak
      and was anyway dependent on not-yet-upstream frontswap and mm changes.
      The code was meanwhile adapted by Seth Jennings for similar
      functionality in zswap (which he calls "flush").  Seth also made some
      clever simplifications which are herein ported back to zcache.  As a
      result of those simplifications, the frontswap changes are no longer
      necessary, but a slightly different (and simpler) set of mm changes are
      still required [1].  The memory leak is also fixed.
      
      Due to feedback from akpm in a zswap thread, this functionality in zcache
      has now been renamed from "unuse" to "writeback".
      
      Although this zcache writeback code now works, there are open questions
      as how best to handle the policy that drives it.  As a result, this
      patch also ties writeback to a new config option.  And, since the
      code still depends on not-yet-upstreamed mm patches, to avoid build
      problems, the config option added by this patch temporarily depends
      on "BROKEN"; this config dependency can be removed in trees that
      contain the necessary mm patches.
      
      [1] https://lkml.org/lkml/2013/1/29/540/ https://lkml.org/lkml/2013/1/29/539/Signed-off-by: default avatarDan Magenheimer <dan.magenheimer@oracle.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      76426daf
    • Joe Perches's avatar
      staging: Remove unnecessary OOM messages · 78110bb8
      Joe Perches authored
      alloc failures already get standardized OOM
      messages and a dump_stack.
      
      For the affected mallocs around these OOM messages:
      
      Converted kzallocs with multiplies to kcalloc.
      Converted kmallocs with multiplies to kmalloc_array.
      Converted a kmalloc/strlen/strncpy to kstrdup.
      Moved a spin_lock below a removed OOM message and
      removed a now unnecessary spin_unlock.
      Neatened alignment and whitespace.
      Signed-off-by: default avatarJoe Perches <joe@perches.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      78110bb8
    • Greg Kroah-Hartman's avatar
      Merge tag 'iio-for-3.9d' of... · ad463ac4
      Greg Kroah-Hartman authored
      Merge tag 'iio-for-3.9d' of git://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio into staging-next
      
      Jonathan writes:
      
      "4th set of IIO new drivers cleanups and fixes for the 3.9 cycle
      + a new spi helper function.
      
      1) Introduce spi_sync_transfer and use it within IIO.  Originally
         it was envisioned that this nice little boilerplate replacement
         would go through the spi tree, but Grant Likely stated he'd
         prefer we take it through IIO as the example usecases were all
         in IIO (and are also in this pull request).  Note that given
         their may have been some unresolved elements related to the
         coccinelle element of the patch, that has been stripped out
         and will doubtlessly follow at a later date (along with
         lots of other patches for drivers elsewhere in the tree).
      
      2) New Invensense MPU6050 driver.  This is stripped down to pretty
         much the basics from the original submission with the intent
         to build up all the fancy bits in an incremental (and hence
         reviewable fashion). It's been through a good few revisions
         so nice to finally merge this.
      
      3) Change to iio_channel_get api to simplify device tree based
         mappings.  The actual mappings are currently under review.
      
      4) Build fixes for !CONFIG_IIO_TRIGGER in the st_sensors driver.
         This one snuck past during review and testing but got picked
         up by Randy Dunlap in a randconfig build.
      
      5) Some max1363 cleanups and enhancements.
      
      6) Some comment fixes to make them coherent and comprehensible.
      
      7) Trivial build warning fix in mxs-lradc"
      ad463ac4
  3. 10 Feb, 2013 1 commit
  4. 09 Feb, 2013 7 commits
  5. 08 Feb, 2013 13 commits
  6. 07 Feb, 2013 2 commits
  7. 06 Feb, 2013 11 commits