From patchwork Sun Jun 3 03:24:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoquan He X-Patchwork-Id: 10445105 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D11CE604D4 for ; Sun, 3 Jun 2018 03:24:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C36DA28800 for ; Sun, 3 Jun 2018 03:24:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B79DB28B08; Sun, 3 Jun 2018 03:24:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=unavailable version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8EB2828B06 for ; Sun, 3 Jun 2018 03:24:21 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D77A76B0005; Sat, 2 Jun 2018 23:24:14 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id D277F6B0006; Sat, 2 Jun 2018 23:24:14 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id BEF816B0007; Sat, 2 Jun 2018 23:24:14 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-qk0-f197.google.com (mail-qk0-f197.google.com [209.85.220.197]) by kanga.kvack.org (Postfix) with ESMTP id 92F526B0005 for ; Sat, 2 Jun 2018 23:24:14 -0400 (EDT) Received: by mail-qk0-f197.google.com with SMTP id f207-v6so21781836qke.22 for ; Sat, 02 Jun 2018 20:24:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-original-authentication-results:x-gm-message-state:from:to:cc :subject:date:message-id; bh=N5vjiWNUjjFMR3YBePoq8vpr0MKLDbnvM97tCRhYobU=; b=FNtVRHoFjZE0pkFVgTLO2F4MrWbVijaFaa5K21mXGaEAuhhI5svnVMGiIzYjqAAk/p tRu5AUSgx2976xxZ/xv9+3ZlkuuSfhd6rUfAaeA1ySD2yBdYBx/su4H9u2Lhmw91f0Z2 XbZnaPiFYnWwq3j0MAt2b3qbA8LDO2UlmZyf8KiW/uKL3ngqztg007JcOGjYPXsZRlPK YeR2JYNMSE5eQ/dcXkvX6Q0mjhocsD75LJ5eH2hZyX5/V6iqMEj6fI5Km78OHojazulT VZSdu9+SLfOM6Q6FWJ1InYKeKgSqO97i0ES8Woy5Kf5CBEPvmH2XwrJRk09fAe2ABUXm UIHA== X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of bhe@redhat.com designates 66.187.233.73 as permitted sender) smtp.mailfrom=bhe@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com X-Gm-Message-State: APt69E2TfewWdRuyIloXMU0uKMmplzcEdS1vPF7Kt1z5tYvs1AuWZTnE TdZrqPbi1RlUVGJ1ZDSBewUZGAuFDH8nweuZhrqt5JJOvl7WxjyRBhLV/kbZAUGS/405mQiYgRk xmtqiOq1fCVmnYGQhpOrS/esmeadC+EgwncSC/wWYQFiICnzMAu1NRRCzmAQWEvEYQw== X-Received: by 2002:a37:1bc9:: with SMTP id m70-v6mr14639583qkh.152.1527996254360; Sat, 02 Jun 2018 20:24:14 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJZ71ZUla938gMTgYFEbUyg2uIuDZHoy46AMil1o4HwISCCotSVbcwVvWLj8e+3Pc4exhqf X-Received: by 2002:a37:1bc9:: with SMTP id m70-v6mr14639567qkh.152.1527996253786; Sat, 02 Jun 2018 20:24:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527996253; cv=none; d=google.com; s=arc-20160816; b=OGZPe4AP0jb7L4BPNxZWMYaIQAENM7JqvUSCMftqFvWEkpZVqiRfiyc/erqLqaGbU7 /qJFm1aEnw4JlXPVYvz8QT2PMvcB2aURtQgjORWAiLP+E3rkqmXWW8QTI07Rc51ACRcy o7PvUT1ekdRBME90pWyUp57dmM9PaNo1KTaTJNZuSYAglLIA04luDM0AiRpRfbZJtAqS qLSpULCxe/9P6hvI5+SNMXJTMqztN4jmaKKsxadHiCddJpgCk7Zgi54aVFVo3YctWDOz WONgPdpxSYK9mpLIb+f0QYAQ2AdCZs1bjvn/bU+RmD5WLFfLbAyiWXuczUGWXqyBD9x1 23pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:arc-authentication-results; bh=N5vjiWNUjjFMR3YBePoq8vpr0MKLDbnvM97tCRhYobU=; b=a6CMvfwgWuMgXQlMLqm6hc7JijEHpsrtFgcSKLc3sLorq4NA7xKIyorLuUhXGDT8pF 5DLsAiak8Tmk4mX0b2v0VfAMMscTSLteuarm/yKgv/dTFpgvvPsnzFRmH5QA9TQldbUs Go/KKiE8IfkLYV2/L5OaLsErTZ1BtMGhstBtTLT1SHvY7KqD/xySndAJvUAxIzs86jc4 nSKJL6jVBqmCTb6u0qi2zZf49n479+WDOj0QINUm0084NGv1ckNJs+kjQeS1uOJLz640 hRpTkXT3Pmuu3Wxmo0F8tZx8ztJOCYgMtijKa2ybxEhs4pTK5P+NatV/czbBM9y4qcj+ hVJw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of bhe@redhat.com designates 66.187.233.73 as permitted sender) smtp.mailfrom=bhe@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from mx1.redhat.com (mx3-rdu2.redhat.com. [66.187.233.73]) by mx.google.com with ESMTPS id q8-v6si2323942qvo.99.2018.06.02.20.24.13 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 02 Jun 2018 20:24:13 -0700 (PDT) Received-SPF: pass (google.com: domain of bhe@redhat.com designates 66.187.233.73 as permitted sender) client-ip=66.187.233.73; Authentication-Results: mx.google.com; spf=pass (google.com: domain of bhe@redhat.com designates 66.187.233.73 as permitted sender) smtp.mailfrom=bhe@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5E45F68819; Sun, 3 Jun 2018 03:24:13 +0000 (UTC) Received: from MiWiFi-R3L-srv.redhat.com (ovpn-8-16.pek2.redhat.com [10.72.8.16]) by smtp.corp.redhat.com (Postfix) with ESMTP id 879CF10F1C04; Sun, 3 Jun 2018 03:24:06 +0000 (UTC) From: Baoquan He To: linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org, cl@linux.com, penberg@kernel.org, rientjes@google.com, iamjoonsoo.kim@lge.com, akpm@linux-foundation.org, Baoquan He Subject: [PATCH] slab: Clean up the code comment in slab kmem_cache struct Date: Sun, 3 Jun 2018 11:24:02 +0800 Message-Id: <20180603032402.27526-1-bhe@redhat.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Sun, 03 Jun 2018 03:24:13 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Sun, 03 Jun 2018 03:24:13 +0000 (UTC) for IP:'10.11.54.3' DOMAIN:'int-mx03.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'bhe@redhat.com' RCPT:'' X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: X-Virus-Scanned: ClamAV using ClamSMTP In commit 3b0efdfa1e7("mm, sl[aou]b: Extract common fields from struct kmem_cache") The variable 'obj_size' was moved above, however the related code comment is not updated accordingly. Do it here. Signed-off-by: Baoquan He Acked-by: Christoph Lameter --- include/linux/slab_def.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/include/linux/slab_def.h b/include/linux/slab_def.h index d9228e4d0320..3485c58cfd1c 100644 --- a/include/linux/slab_def.h +++ b/include/linux/slab_def.h @@ -67,9 +67,10 @@ struct kmem_cache { /* * If debugging is enabled, then the allocator can add additional - * fields and/or padding to every object. size contains the total - * object size including these internal fields, the following two - * variables contain the offset to the user object and its size. + * fields and/or padding to every object. 'size' contains the total + * object size including these internal fields, while 'obj_offset' + * and 'object_size' contain the offset to the user object and its + * size. */ int obj_offset; #endif /* CONFIG_DEBUG_SLAB */