Received: by 10.223.176.5 with SMTP id f5csp251143wra; Thu, 8 Feb 2018 21:06:07 -0800 (PST) X-Google-Smtp-Source: AH8x227HMiY5aj2JsGrIsZTPbXTmx3Pi37tmLtYNWIuZC6ZD6N+OIh/EmXzKDK7FXQmlsDpwZr4m X-Received: by 10.98.3.5 with SMTP id 5mr1538924pfd.215.1518152766910; Thu, 08 Feb 2018 21:06:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518152766; cv=none; d=google.com; s=arc-20160816; b=zrHyLY+YU3JJo030vmGsWTeWnVIJKqxGPbMq9hbRG+dkKDlLlTuC6Bjwcu7OCOrt6G N6XIhn8E1Gl1QpiGKM1SbUhdqXsiKEU0RJsxUi+Ld1RlC2IZ5m+L4GwAVl+pw6ApYzPW 9yk5C7/KrclHfLYKJI4SEueAx1KsTfhMu7EgYWdiYj95nYXJqONV6AsZw6STfTY/0EfZ 31b5KgvlM/zKKWmeHyoSPSJQ9ktVU+uTRB4eLG2QV/mOSI//Gh6KcH1BgWPcxCZURP5V lendX1oNMD5LA3a0MszXPHoj3lGE6HPp3fMqU+FKEDU/K1n3Lcok5FmuNHS40q1iGMaX PUoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=NKTTBq1kaLbcvVVgPJ+xUKZVL+fRlWeWc8REoVK7OBI=; b=vEOVwkrdwA4FyPWxONA1f+0qCxAwN+6BiDjd5Q4BWMYxHMYXcPG7Voc9BZqodqOKsi 5Dj3NMFushOjiUCNKYS6f1lg5GNmJgxUSW1rJaIuz9pTgnuxdK++4vojOV2PVzuntrut JGIf8to+VxTHxjdlYwGWHSx3i5PqseZOoLueTV8DPdqBVW59nmw6ICSPjS1sLuuXIlTj JcVDX+9H4QqziC/bx3AN2ody/QU7HtOujG4Er18n6nU9fjpt9pUS4TyQ+1CFWLOb8Ihx iBVMnSpaserdN6/nKrGs76IdvknMXy+uCjIQcRdCeYhGs1ji//OIcPHaGswUHupOo3aJ UtdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=g5wc4tMN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o184si912062pga.818.2018.02.08.21.05.40; Thu, 08 Feb 2018 21:06:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=g5wc4tMN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750863AbeBIFEn (ORCPT + 99 others); Fri, 9 Feb 2018 00:04:43 -0500 Received: from mail-pg0-f66.google.com ([74.125.83.66]:38105 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750746AbeBIFEm (ORCPT ); Fri, 9 Feb 2018 00:04:42 -0500 Received: by mail-pg0-f66.google.com with SMTP id l18so2888519pgc.5 for ; Thu, 08 Feb 2018 21:04:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=NKTTBq1kaLbcvVVgPJ+xUKZVL+fRlWeWc8REoVK7OBI=; b=g5wc4tMNLp1o/NiXEcJLKv3/vaDjk43+H2736wKVDiP1VIbQaus2t4kZYIxVywQuZ2 Iyju2X0p8LI5TEAsXdJ+zuokkKD5J4+3hdWN4cJ5hv9U9U+LkaZWyoY6nZcMoPGBICxB DAbZ+f32O7VXW+Guc3K4N0XjNYn2c+uxXaVTLcSjRInQnPcFibkDx7M/okKSoayvfW7E tBS6pF8if9BiK4ruJPSGHxDqEmwT6y+XiriLdUDwmXYv3p4DpLNckseieQVc4Oloaqv9 v02Z5SCv61g/9nVBKWnRPRf5eUnCDg1iKRAZ5+1JYtHdPgK9kbqYXoYXJmcZca53Z/f+ f/Lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=NKTTBq1kaLbcvVVgPJ+xUKZVL+fRlWeWc8REoVK7OBI=; b=ak8guCAn3s3vV7UYpn1axOFHJBnpBoZ1QmxyFVER+SdGTcxOZkTrMYvriJ13/ZByMq gAle1HFnT2Wtg8c9R89b5a9uvwVRL6W15FFa9M3F5sRZyL1exWNTi2DOSw/yJKSfxwhK oo+UwHdjHDmTiKdGeC7ZzfqZ6YAV8UzSczOjPy2LigqLEzph0J/lAFrsmrQkjCPbOCQV O3Bkcq173r2T5ofnlC3MJ5lBLYnhK6z050WBrGcJf+o6e9VdAnA/mmPk++mUYo9blIP0 QVhT+jCyKXibCv81EimcvidJlcVuWrXCXJsaW5oqNp67FyXjU0kIVpU9khz4oFfvPDS5 uGjA== X-Gm-Message-State: APf1xPDJnrj7i8BEuUDye8eMAJYWXNNMDswqg7igOEwV8l7Q2a8n4Y6t MrzHhsxdzuQMBJ50AQoNq14= X-Received: by 10.99.96.73 with SMTP id u70mr1261127pgb.199.1518152681978; Thu, 08 Feb 2018 21:04:41 -0800 (PST) Received: from localhost ([110.70.51.39]) by smtp.gmail.com with ESMTPSA id e23sm3814381pfk.114.2018.02.08.21.04.39 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 08 Feb 2018 21:04:40 -0800 (PST) Date: Fri, 9 Feb 2018 14:04:36 +0900 From: Sergey Senozhatsky To: Matthew Wilcox Cc: Sergey Senozhatsky , Mike Rapoport , Minchan Kim , Andrew Morton , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Sergey Senozhatsky Subject: Re: [PATCH 1/2] zsmalloc: introduce zs_huge_object() function Message-ID: <20180209050436.GB689@jagdpanzerIV> References: <20180207092919.19696-1-sergey.senozhatsky@gmail.com> <20180207092919.19696-2-sergey.senozhatsky@gmail.com> <20180208163006.GB17354@rapoport-lnx> <20180209025520.GA3423@jagdpanzerIV> <20180209041046.GB23828@bombadil.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180209041046.GB23828@bombadil.infradead.org> User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On (02/08/18 20:10), Matthew Wilcox wrote: > > > > +/* > > > > + * Check if the object's size falls into huge_class area. We must take > > > > + * ZS_HANDLE_SIZE into account and test the actual size we are going to > > > > + * use up. zs_malloc() unconditionally adds handle size before it performs > > > > + * size_class lookup, so we may endup in a huge class yet zs_huge_object() > > > > + * returned 'false'. > > > > + */ > > > > > > Can you please reformat this comment as kernel-doc? > > > > Is this - Documentation/doc-guide/kernel-doc.rst - the right thing > > to use as a reference? > > Yes. I just sent a revision to it that makes it (I think) a little > easier to read. Try this version: That's helpful, thanks! Will take a look and re-spin the patch. -ss