Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1467314imm; Wed, 6 Jun 2018 16:59:46 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJ5J/oZrTjYJJJ0lTgNFmed0CunC01LfRth94UZXDJFwT6Wekm3YT0yXGSAvRlDFTBcKfAa X-Received: by 2002:a62:bd03:: with SMTP id a3-v6mr4349490pff.138.1528329586188; Wed, 06 Jun 2018 16:59:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528329586; cv=none; d=google.com; s=arc-20160816; b=mqSnYliO40OdLNXD1JvgOSC0wyV99uCbL5QSgkmi22XN7VExL2zAoDorH2lLVN2neM JW0m8zmPk/kt5PNU6pUk9pK5zBcksW0rdlJzBDikjsYnHYAJFTcCm5RKNXPrUH9lmipG AMNuHVdQqeQMAEco5sUvRmD+wXM0vkTS26g2I+hj4L6ZwudsVtbF67UBLtCmTiK1hqeI YCmH6sFuHBHH4+QOObdHra9nLtvr0n2BHoILKgFFZXwFsH1kkD+GUTnoX0TdQc5HRhXC FV4nU1P6Uv5gWv3yvMJ69+XgCtLS1DRg9gr+EYcdinjhw9p0dyBrrMuZE7zifF5Fax5l DgPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:feedback-id:mime-version:user-agent :references:message-id:in-reply-to:subject:cc:to:from:date :dkim-signature:arc-authentication-results; bh=kBf++yF18/HSyDlaDDNq7JiFV31WDEMUHr34BamH9cI=; b=n67bwuTpR+P5NCMwsw0/956F69aGXdGlDex4fTc7xUNrL6KtlVAYfvTJBq68WsfhhD SyYfZCP81/2eCgGL0n8r07zxpeE+sCUEvGmtrijz5/RSgnoFtPNMbcGIW0FQLaVsv7bq tJJHOX2I//6uiPWKAFvK1LqZibXRPO5p8gpfnyehXB3Pxg94RxMrrzI2O1vZJCnRDsnM b+odAZ80H5SH+wSAJwmProcPO5kaDFA0MQyKR56OWjDrMZgrPZeK5JBl+lxUkfjw9fSj xGvr+fFHqQmvufh/5CmxHjxgnlfOLKLCODJkSPwOqc6hynBw3eYBtjLyG4VURDfNa8Kr hfxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazonses.com header.s=ug7nbtf4gccmlpwj322ax3p6ow6yfsug header.b=X2CybG7Y; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f7-v6si40950974pgn.479.2018.06.06.16.59.18; Wed, 06 Jun 2018 16:59:46 -0700 (PDT) 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=@amazonses.com header.s=ug7nbtf4gccmlpwj322ax3p6ow6yfsug header.b=X2CybG7Y; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752256AbeFFXsQ (ORCPT + 99 others); Wed, 6 Jun 2018 19:48:16 -0400 Received: from a9-114.smtp-out.amazonses.com ([54.240.9.114]:59178 "EHLO a9-114.smtp-out.amazonses.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752093AbeFFXsP (ORCPT ); Wed, 6 Jun 2018 19:48:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=ug7nbtf4gccmlpwj322ax3p6ow6yfsug; d=amazonses.com; t=1528328894; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:MIME-Version:Content-Type:Feedback-ID; bh=kBf++yF18/HSyDlaDDNq7JiFV31WDEMUHr34BamH9cI=; b=X2CybG7Yftab05DJyXoO1AFeb0jYemWy4ckhL7dnhJA/cH6MOWMnMeHCkrPXcd5a 5TRm9XWixAgHDSb589B5QfPm8xfKxJVYd8Uciyu9/jv5Q/odWnsRWislzAv4WZRdWiW ocMsuAvE1RahqSOWnlwrvtd11Tzk1lFT+teEasaU= Date: Wed, 6 Jun 2018 23:48:14 +0000 From: Christopher Lameter X-X-Sender: cl@nuc-kabylake To: Baoquan He cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, penberg@kernel.org, rientjes@google.com, iamjoonsoo.kim@lge.com, akpm@linux-foundation.org Subject: Re: [PATCH] slab: Clean up the code comment in slab kmem_cache struct In-Reply-To: <20180606012624.GA19425@MiWiFi-R3L-srv> Message-ID: <01000163d7803909-286c20d2-9928-4e07-94fc-ee6552e04c67-000000@email.amazonses.com> References: <20180603032402.27526-1-bhe@redhat.com> <01000163d0e8083c-096b06d6-7202-4ce2-b41c-0f33784afcda-000000@email.amazonses.com> <20180606012624.GA19425@MiWiFi-R3L-srv> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-SES-Outgoing: 2018.06.06-54.240.9.114 Feedback-ID: 1.us-east-1.fQZZZ0Xtj2+TD7V5apTT/NrT6QKuPgzCT/IC7XYgDKI=:AmazonSES Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 6 Jun 2018, Baoquan He wrote: > I am back porting Thomas's sl[a|u]b freelist randomization feature to > our distros, need go through slab code for better understanding. From > git log history, they were 'obj_offset' and 'obj_size'. Later on > 'obj_size' was renamed to 'object_size' in commit 3b0efdfa1e("mm, sl[aou]b: > Extract common fields from struct kmem_cache") which is from your patch. > With my understanding, I guess you changed that on purpose because > object_size is size of each object, obj_offset is for the whole cache, > representing the offset the real object starts to be stored. And putting > them separately is for better desribing them in code comment and > distinction, e.g 'object_size' is in "4) cache creation/removal", > while 'obj_offset' is put alone to indicate it's for the whole. obj_offset only applies when CONFIG_SLAB_DEBUG is set. Ok so that screwy name also indicates that something special goes on.