Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756964AbbHZSdA (ORCPT ); Wed, 26 Aug 2015 14:33:00 -0400 Received: from mail-qg0-f46.google.com ([209.85.192.46]:36365 "EHLO mail-qg0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752348AbbHZSc5 (ORCPT ); Wed, 26 Aug 2015 14:32:57 -0400 From: Dan Streetman To: Seth Jennings , Andrew Morton , Rusty Russell Cc: linux-kernel , Linux-MM , Dan Streetman Subject: [PATCH 0/2] zswap: use charp type params instead of fixed-len strings Date: Wed, 26 Aug 2015 14:32:48 -0400 Message-Id: <1440613970-23913-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: 764 Lines: 21 These patches change zswap to use charp type params instead of the existing fixed length char[] buffers for the zpool and compressor params. This saves memory and simplifies the param setting function. Dan Streetman (2): module: export param_free_charp() zswap: use charp for zswap param strings include/linux/moduleparam.h | 1 + kernel/params.c | 3 +- mm/zswap.c | 80 ++++++++++++++++++++++----------------------- 3 files changed, 43 insertions(+), 41 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/