[PATCH v3 00/14] Rearrange struct page

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Matthew Wilcox <mawilcox@xxxxxxxxxxxxx>

This is actually the combination of two previously posted series.
Since they both deal with rearranging struct page and the second series
depends on the first, I thought it best to combine them.

The overall motivation is to make it easier for people to use the space
in struct page if they've allocated it for their own purposes.  By the
end of the series, we end up with five consecutive words which can be
used almost arbitrarily by the owner.

Highlights:
 - slub's counters no longer share space with _refcount.
 - slub's freelist+counters are now naturally dword aligned.
 - It's now more obvious what fields in struct page are used by which
   owners (some owners still take advantage of the union aliasing).
 - deferred_list now really exists in struct page instead of just a
   comment.
 - slub loses a parameter to a lot of functions.

Matthew Wilcox (14):
  s390: Use _refcount for pgtables
  mm: Split page_type out from _mapcount
  mm: Mark pages in use for page tables
  mm: Switch s_mem and slab_cache in struct page
  mm: Move 'private' union within struct page
  mm: Move _refcount out of struct page union
  slub: Remove page->counters
  mm: Combine first three unions in struct page
  mm: Use page->deferred_list
  mm: Move lru union within struct page
  mm: Combine first two unions in struct page
  mm: Improve struct page documentation
  slab,slub: Remove rcu_head size checks
  slub: Remove kmem_slab_cache->reserved

 arch/s390/mm/pgalloc.c                 |  21 +--
 fs/proc/page.c                         |   2 +
 include/linux/mm.h                     |   2 +
 include/linux/mm_types.h               | 216 +++++++++++--------------
 include/linux/page-flags.h             |  51 +++---
 include/linux/slub_def.h               |   1 -
 include/uapi/linux/kernel-page-flags.h |   2 +-
 kernel/crash_core.c                    |   1 +
 mm/huge_memory.c                       |   7 +-
 mm/page_alloc.c                        |  17 +-
 mm/slab.c                              |   2 -
 mm/slub.c                              | 137 +++++++---------
 scripts/tags.sh                        |   6 +-
 tools/vm/page-types.c                  |   1 +
 14 files changed, 215 insertions(+), 251 deletions(-)

-- 
2.17.0




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux