From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f71.google.com (mail-wm0-f71.google.com [74.125.82.71]) by kanga.kvack.org (Postfix) with ESMTP id 1D3966B025F for ; Fri, 17 Jun 2016 04:31:00 -0400 (EDT) Received: by mail-wm0-f71.google.com with SMTP id c82so38848288wme.2 for ; Fri, 17 Jun 2016 01:31:00 -0700 (PDT) Received: from mail-wm0-x243.google.com (mail-wm0-x243.google.com. [2a00:1450:400c:c09::243]) by mx.google.com with ESMTPS id t124si3589102wmb.85.2016.06.17.01.30.58 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 Jun 2016 01:30:59 -0700 (PDT) Received: by mail-wm0-x243.google.com with SMTP id r201so2686659wme.0 for ; Fri, 17 Jun 2016 01:30:58 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20160615231732.GJ17127@bbox> References: <20160615231732.GJ17127@bbox> From: Vitaly Wool Date: Fri, 17 Jun 2016 10:30:58 +0200 Message-ID: Subject: Re: [PATCH] zram: update zram to use zpool Content-Type: text/plain; charset=UTF-8 Sender: owner-linux-mm@kvack.org List-ID: To: Minchan Kim Cc: Geliang Tang , Nitin Gupta , Sergey Senozhatsky , Dan Streetman , LKML , Linux-MM Hi Minchan, On Thu, Jun 16, 2016 at 1:17 AM, Minchan Kim wrote: > On Wed, Jun 15, 2016 at 10:42:07PM +0800, Geliang Tang wrote: >> Change zram to use the zpool api instead of directly using zsmalloc. >> The zpool api doesn't have zs_compact() and zs_pool_stats() functions. >> I did the following two things to fix it. >> 1) I replace zs_compact() with zpool_shrink(), use zpool_shrink() to >> call zs_compact() in zsmalloc. >> 2) The 'pages_compacted' attribute is showed in zram by calling >> zs_pool_stats(). So in order not to call zs_pool_state() I move the >> attribute to zsmalloc. >> >> Signed-off-by: Geliang Tang > > NACK. > > I already explained why. > http://lkml.kernel.org/r/20160609013411.GA29779@bbox This is a fair statement, to a certain extent. I'll let Geliang speak for himself but I am personally interested in this zram extension because I want it to work on MMU-less systems. zsmalloc can not handle that, so I want to be able to use zram over z3fold. Best regards, Vitaly -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org