From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752792AbcD2Agx (ORCPT ); Thu, 28 Apr 2016 20:36:53 -0400 Received: from mail-pf0-f172.google.com ([209.85.192.172]:32887 "EHLO mail-pf0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751534AbcD2Agv (ORCPT ); Thu, 28 Apr 2016 20:36:51 -0400 Date: Fri, 29 Apr 2016 09:38:24 +0900 From: Sergey Senozhatsky To: Andrew Morton Cc: Dan Streetman , Minchan Kim , Nitin Gupta , Sergey Senozhatsky , Seth Jennings , Yu Zhao , Linux-MM , Sergey Senozhatsky , linux-kernel , Dan Streetman Subject: Re: [PATCH] mm/zsmalloc: don't fail if can't create debugfs info Message-ID: <20160429003824.GC4920@swordfish> References: <1461857808-11030-1-git-send-email-ddstreet@ieee.org> <20160428150709.2eef0506d84cd37ac6b61d12@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160428150709.2eef0506d84cd37ac6b61d12@linux-foundation.org> User-Agent: Mutt/1.6.0 (2016-04-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On (04/28/16 15:07), Andrew Morton wrote: > Needed a bit of tweaking due to > http://ozlabs.org/~akpm/mmotm/broken-out/zsmalloc-reordering-function-parameter.patch Thanks. > From: Dan Streetman > Subject: mm/zsmalloc: don't fail if can't create debugfs info > > Change the return type of zs_pool_stat_create() to void, and > remove the logic to abort pool creation if the stat debugfs > dir/file could not be created. > > The debugfs stat file is for debugging/information only, and doesn't > affect operation of zsmalloc; there is no reason to abort creating > the pool if the stat file can't be created. This was seen with > zswap, which used the same name for all pool creations, which caused > zsmalloc to fail to create a second pool for zswap if > CONFIG_ZSMALLOC_STAT was enabled. no real objections from me. given that both zram and zswap now provide unique names for zsmalloc stats dir, this patch does not fix any "real" (observed) problem /* ENOMEM in debugfs_create_dir() is a different case */. so it's more of a cosmetic patch. FWIW, Reviewed-by: Sergey Senozhatsky -ss