Skip to content
Snippets Groups Projects
  1. Jan 15, 2022
  2. May 07, 2021
  3. Feb 26, 2021
  4. Aug 12, 2020
  5. Sep 24, 2019
  6. May 21, 2019
  7. Feb 21, 2018
  8. Feb 07, 2018
  9. Feb 01, 2018
  10. Nov 07, 2015
  11. Sep 10, 2015
    • Dan Streetman's avatar
      zpool: add zpool_has_pool() · 3f0e1312
      Dan Streetman authored
      
      This series makes creation of the zpool and compressor dynamic, so that
      they can be changed at runtime.  This makes using/configuring zswap
      easier, as before this zswap had to be configured at boot time, using boot
      params.
      
      This uses a single list to track both the zpool and compressor together,
      although Seth had mentioned an alternative which is to track the zpools
      and compressors using separate lists.  In the most common case, only a
      single zpool and single compressor, using one list is slightly simpler
      than using two lists, and for the uncommon case of multiple zpools and/or
      compressors, using one list is slightly less simple (and uses slightly
      more memory, probably) than using two lists.
      
      This patch (of 4):
      
      Add zpool_has_pool() function, indicating if the specified type of zpool
      is available (i.e.  zsmalloc or zbud).  This allows checking if a pool is
      available, without actually trying to allocate it, similar to
      crypto_has_alg().
      
      This is used by a following patch to zswap that enables the dynamic
      runtime creation of zswap zpools.
      
      Signed-off-by: default avatarDan Streetman <ddstreet@ieee.org>
      Acked-by: default avatarSeth Jennings <sjennings@variantweb.net>
      Cc: Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      3f0e1312
  12. Sep 08, 2015
  13. Jun 26, 2015
    • Dan Streetman's avatar
      zpool: remove zpool_evict() · 479305fd
      Dan Streetman authored
      
      Remove zpool_evict() helper function.  As zbud is currently the only
      zpool implementation that supports eviction, add zpool and zpool_ops
      references to struct zbud_pool and directly call zpool_ops->evict(zpool,
      handle) on eviction.
      
      Currently zpool provides the zpool_evict helper which locks the zpool
      list lock and searches through all pools to find the specific one
      matching the caller, and call the corresponding zpool_ops->evict
      function.  However, this is unnecessary, as the zbud pool can simply
      keep a reference to the zpool that created it, as well as the zpool_ops,
      and directly call the zpool_ops->evict function, when it needs to evict
      a page.  This avoids a spinlock and list search in zpool for each
      eviction.
      
      Signed-off-by: default avatarDan Streetman <ddstreet@ieee.org>
      Cc: Seth Jennings <sjennings@variantweb.net>
      Cc: Minchan Kim <minchan@kernel.org>
      Cc: Nitin Gupta <ngupta@vflare.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      479305fd
    • Dan Streetman's avatar
      zpool: change pr_info to pr_debug · cf41f5f4
      Dan Streetman authored
      
      Change the pr_info() calls to pr_debug().  There's no need for the extra
      verbosity in the log.  Also change the msg formats to be consistent.
      
      Signed-off-by: default avatarDan Streetman <ddstreet@ieee.org>
      Cc: Kees Cook <keescook@chromium.org>
      Cc: Minchan Kim <minchan@kernel.org>
      Cc: Ganesh Mahendran <opensource.ganesh@gmail.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      cf41f5f4
  14. Feb 13, 2015
  15. Aug 29, 2014
  16. Aug 07, 2014
Loading