Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2182645imm; Sat, 2 Jun 2018 20:25:18 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJF7KD4tZUfTUHB2SUYdc/PxinA8zgjQ4AxyDfpZ/mGuF9FMGpijuWeslNdy+HzdQJEWT3g X-Received: by 2002:a62:2414:: with SMTP id r20-v6mr8257732pfj.108.1527996318446; Sat, 02 Jun 2018 20:25:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527996318; cv=none; d=google.com; s=arc-20160816; b=oyM56cYiVupi/faE1zweBPtuoiVWTtaRubehCcPnNHZmWgu4nmrTCmhUpvaewKzhr1 Qgf8Y4nCVXLvje9PZ1/DnR5iO8DwFVUQcY1qZifOFYvVLx2TsFrSroB/4UyghAdaJKsY XTSYRs1UgucIi/3iVxV4DH3CDX9nGpqXy7PLJnau9NxhlCZY3njy/5ysMoqsK6Y0rVqv Uya1nZhUnxwUk+dvQJxViVvj534HGCoExNyCWssD28+UMi9vYrylzYOcZIX/QYMEifSn 1whnD2qCqwwRedD2xfTx2eSj03uQRLpdmdT/2L6H2OLJrH0j3g0Hh3Vp0q3/GgVeDq46 FtHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=N5vjiWNUjjFMR3YBePoq8vpr0MKLDbnvM97tCRhYobU=; b=H7NN254RE7B6Sc5jkEkpcFCtpSVz9Vlds+jzIBsD1/vksedorYSbqY+XDOOh1p1vZy 7JFlGj5cpe5qKqb5bsz5huzVBk67Q07AwYOtDSdoJ15Jx2lhfU6u94UYRMp85WekqJlr 0Nk1F1fCAR+A3DIwpZTkG88d9SRSvjiAq3B8FocBVHPtzcZHWLKW5+AnZ4T9tpxVhQHA TgA5HkBD0QrIcgdGS0kVu3odHNs+a6atw7TB63qVnoJ3A+5FR2Ifb4AzLtjtXYSyuZPC xqLdqSEw7Yws4UGii4ANKUufMk3H0m0Rkf6e502s0xqDcx1Q+UP/E08NpATNYspPV9pB LeAg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j7-v6si44720589pfh.3.2018.06.02.20.24.49; Sat, 02 Jun 2018 20:25:18 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751085AbeFCDYO (ORCPT + 99 others); Sat, 2 Jun 2018 23:24:14 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:60462 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750931AbeFCDYO (ORCPT ); Sat, 2 Jun 2018 23:24:14 -0400 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:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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 */ -- 2.13.6