[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190313052030.13392-1-tobin@kernel.org>
Date: Wed, 13 Mar 2019 16:20:25 +1100
From: "Tobin C. Harding" <tobin@...nel.org>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: "Tobin C. Harding" <tobin@...nel.org>,
Roman Gushchin <guro@...com>, Christoph Lameter <cl@...ux.com>,
Pekka Enberg <penberg@...nel.org>,
David Rientjes <rientjes@...gle.com>,
Joonsoo Kim <iamjoonsoo.kim@....com>,
Matthew Wilcox <willy@...radead.org>, linux-mm@...ck.org,
linux-kernel@...r.kernel.org
Subject: [PATCH v2 0/5]] mm: Use slab_list list_head instead of lru
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
Powered by blists - more mailing lists