Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp2707810imc; Tue, 12 Mar 2019 22:24:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqzH4F1r5Rcy1YHSjOwKjqPND/X3PduhBcCZpy2VTVouEKGgAEh/FFhmmzorOKamcyNs2TG8 X-Received: by 2002:a65:48c1:: with SMTP id o1mr16170195pgs.94.1552454662203; Tue, 12 Mar 2019 22:24:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552454662; cv=none; d=google.com; s=arc-20160816; b=i0julB58aeBJbSJ9quWNbMNslWr5uaaBQsWxLnjqEUPy7ogc8egqZy8yJvPP0ogtP6 KwKhS4GwQ94vl+y2s2Tw17BCaKnyfEhgPDMz5SY7SpzMS7qMFnGWrTDkrdTtheh+x574 m2hABw3oh05n+HRaMEP33XrmpwdygS0D7hvmO8skvOaCtAjunkhqnA2HvPST1mX1HpNq yuTv1lu6D6XzTP3FmVZ4m5lG+37izKu8v89Cd3XRzohYCizumxsagX7sG2sWhW2G8KPQ kiIL/tsFVQCwSutSr7hL/dqP50s3i9stuywPwNfv3BJlsbL/ogQO7oFpGPS5ScmJzibH Z3HA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=syfOZfzAEXP08coD58eOkvYA4m3WRZUBnOoyYyN32bc=; b=bTL6eOZtd39AYcywDvE2i/8MBrYwE/vLltZl+bzTPS9dC/fzr/f/5KWx4NcqKOZpKO qUq9pqivA8p7tsa+1L1ruN7Jn4ab7WfdYmgNZWGPWD0hIqprOcE+kP/wmdcMidKYh/1D /os8ratOZWZIlFNy086pz2CDpR7NaBYTZ2EzBOiu+iRaWcoWRig9htejrHLAs9QErCZ7 pIng8DijC1OKeYictIQN1k4sSltfLAwnksNkyatESRI374Hu53b6C60wF//nhfB6uTed AhRygFjOYIRFMwdrJ0jmQHdRr4xJsN3rGo2rLL11llbywHBZM7AmdQ9DwqHWi2f3ge2r RGEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=jkiZvFmA; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 3si10299040plb.138.2019.03.12.22.24.06; Tue, 12 Mar 2019 22:24:22 -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=@messagingengine.com header.s=fm2 header.b=jkiZvFmA; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726760AbfCMFVI (ORCPT + 99 others); Wed, 13 Mar 2019 01:21:08 -0400 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:49381 "EHLO wout2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725821AbfCMFVI (ORCPT ); Wed, 13 Mar 2019 01:21:08 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id EDDC82FB2; Wed, 13 Mar 2019 01:21:06 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Wed, 13 Mar 2019 01:21:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=syfOZfzAEXP08coD5 8eOkvYA4m3WRZUBnOoyYyN32bc=; b=jkiZvFmA5Yxsd7Q4Uj92iZu1KoJrCzWsn 9ahQfl0EMu6OyJRSrl23KtVYdOJANGTW1S31McTpaZB/VRJbnSYYHBNcbjDYrJsO vSQNZ5BbyUeHFiK7e2WMfgqDdPRrWnIp9UDOGLaEtzTT4VqUD4sCO9MzknmK6i8v s88TpBcWcUqB6+xgo7bAx/g3RKcKZzJwV5JKFsT5rB/+lz511LL5xqnUKXUh2PiB 06d4+qwq5UNcheAMY6Bt0NEnhhLSkubGr7mowrrdaTrHrJ9ZZIRdtBXso6soVHIY CA2lpooyn/MLeXcGnNSVzMuSfckD06CqeRrvrbhrZSnrltAPzimzA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedutddrgeelgdekudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkofgggfestdekredtredttdenucfhrhhomhepfdfvohgsihhnucev rdcujfgrrhguihhnghdfuceothhosghinheskhgvrhhnvghlrdhorhhgqeenucfkphepud dvgedrudeiledrvdefrddukeegnecurfgrrhgrmhepmhgrihhlfhhrohhmpehtohgsihhn sehkvghrnhgvlhdrohhrghenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from eros.localdomain (124-169-23-184.dyn.iinet.net.au [124.169.23.184]) by mail.messagingengine.com (Postfix) with ESMTPA id A2467E427E; Wed, 13 Mar 2019 01:21:00 -0400 (EDT) From: "Tobin C. Harding" To: Andrew Morton Cc: "Tobin C. Harding" , Roman Gushchin , Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , Matthew Wilcox , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/5]] mm: Use slab_list list_head instead of lru Date: Wed, 13 Mar 2019 16:20:25 +1100 Message-Id: <20190313052030.13392-1-tobin@kernel.org> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Currently the slab allocators (ab)use the struct page 'lru' list_head. We have a list head for slab allocators to use, 'slab_list'. Clean up all three allocators by using the 'slab_list' list_head instead of overloading the 'lru' list_head. Patch 1 - Makes no code changes, adds comments to #endif statements. Patches 2,3,4 - Do changes as a patch per allocator, tested by building and booting (in Qemu) after configuring kernel to use appropriate allocator. Also build and boot with debug options enabled (for slab and slub). Verify the object files (before and after the set applied) are the same. Patch 5 - Removes the now stale comment in the page struct definition. Changes since v1: - Verify object files are the same before and after the patch set is applied (suggested by Matthew). - Add extra explanation to the commit logs explaining why these changes are safe to make (suggested by Roman). - Remove stale comment (thanks Willy). thanks, Tobin. Tobin C. Harding (5): slub: Add comments to endif pre-processor macros slub: Use slab_list instead of lru slab: Use slab_list instead of lru slob: Use slab_list instead of lru mm: Remove stale comment from page struct include/linux/mm_types.h | 2 +- mm/slab.c | 49 ++++++++++++++++---------------- mm/slob.c | 10 +++---- mm/slub.c | 60 ++++++++++++++++++++-------------------- 4 files changed, 61 insertions(+), 60 deletions(-) -- 2.21.0