Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753289AbbHENuu (ORCPT ); Wed, 5 Aug 2015 09:50:50 -0400 Received: from mail-qg0-f44.google.com ([209.85.192.44]:33119 "EHLO mail-qg0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752412AbbHENq4 (ORCPT ); Wed, 5 Aug 2015 09:46:56 -0400 From: Dan Streetman To: Seth Jennings Cc: Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Dan Streetman Subject: [PATCH 0/3] make zswap params changeable at runtime Date: Wed, 5 Aug 2015 09:46:40 -0400 Message-Id: <1438782403-29496-1-git-send-email-ddstreet@ieee.org> X-Mailer: git-send-email 2.1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1311 Lines: 31 This is a resend of the patch series. It 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. Dan Streetman (3): zpool: add zpool_has_pool() zswap: dynamic pool creation zswap: change zpool/compressor at runtime include/linux/zpool.h | 2 + mm/zpool.c | 25 ++ mm/zswap.c | 683 ++++++++++++++++++++++++++++++++++++++------------ 3 files changed, 555 insertions(+), 155 deletions(-) -- 2.1.0 -- 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/