From: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org,
Guenter Roeck <linux@roeck-us.net>,
"Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
Subject: [PATCH 0/4] Introduce <linux/mm_struct.h>
Date: Wed, 28 Jan 2015 15:17:40 +0200 [thread overview]
Message-ID: <1422451064-109023-1-git-send-email-kirill.shutemov@linux.intel.com> (raw)
This patchset moves definition of mm_struct into separate header file.
It allows to get rid of nr_pmds if PMD page table level is folded.
We cannot do it with current mm_types.h because we need
__PAGETABLE_PMD_FOLDED from <asm/pgtable.h> which creates circular
dependencies.
I've done few build tests and looks like it works, but I expect breakage
on some configuration. Please test.
I hope one day we would rely on LTO for inlining instead of this header
mess :-/
Kirill A. Shutemov (4):
mm: move enum tlb_flush_reason into <trace/events/tlb.h>
mm: split up mm_struct to separate header file
mm: define __PAGETABLE_{PMD,PUD}_FOLDED to zero or one
mm: do not add nr_pmds into mm_struct if PMD is folded
arch/arm/include/asm/pgtable-2level.h | 2 +-
arch/arm64/include/asm/kvm_mmu.h | 4 +-
arch/arm64/kernel/efi.c | 1 +
arch/arm64/mm/hugetlbpage.c | 6 +-
arch/c6x/kernel/dma.c | 1 -
arch/microblaze/include/asm/pgtable.h | 2 +-
arch/mips/include/asm/pgalloc.h | 4 +-
arch/mips/kernel/asm-offsets.c | 4 +-
arch/mips/mm/init.c | 2 +-
arch/mips/mm/pgtable-64.c | 6 +-
arch/mips/mm/tlbex.c | 8 +-
arch/powerpc/mm/pgtable_64.c | 2 +-
arch/s390/include/asm/pgtable.h | 1 +
arch/sh/mm/init.c | 2 +-
arch/tile/mm/hugetlbpage.c | 4 +-
arch/tile/mm/pgtable.c | 4 +-
arch/x86/include/asm/mmu_context.h | 1 +
arch/x86/include/asm/pgtable.h | 15 +--
arch/x86/include/asm/xen/page.h | 2 +-
drivers/iommu/amd_iommu_v2.c | 1 +
drivers/staging/android/ion/ion.c | 1 -
include/asm-generic/4level-fixup.h | 2 +-
include/asm-generic/pgtable-nopmd.h | 2 +-
include/asm-generic/pgtable-nopud.h | 2 +-
include/asm-generic/pgtable.h | 8 ++
include/linux/mm.h | 5 +-
include/linux/mm_struct.h | 217 ++++++++++++++++++++++++++++++++
include/linux/mm_types.h | 226 ++--------------------------------
include/linux/mmu_notifier.h | 1 +
include/linux/sched.h | 1 +
include/trace/events/tlb.h | 15 ++-
kernel/fork.c | 2 +-
mm/init-mm.c | 1 +
mm/kmemcheck.c | 1 -
mm/memory.c | 4 +-
35 files changed, 289 insertions(+), 271 deletions(-)
create mode 100644 include/linux/mm_struct.h
--
2.1.4
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next reply other threads:[~2015-01-28 13:24 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-28 13:17 Kirill A. Shutemov [this message]
2015-01-28 13:17 ` [PATCH 1/4] mm: move enum tlb_flush_reason into <trace/events/tlb.h> Kirill A. Shutemov
2015-01-28 13:17 ` [PATCH 2/4] mm: split up mm_struct to separate header file Kirill A. Shutemov
2015-01-29 0:30 ` Kirill A. Shutemov
2015-01-29 2:02 ` Guenter Roeck
2015-01-29 4:22 ` Guenter Roeck
2015-01-28 13:17 ` [PATCH 3/4] mm: define __PAGETABLE_{PMD,PUD}_FOLDED to zero or one Kirill A. Shutemov
2015-01-28 13:17 ` [PATCH 4/4] mm: do not add nr_pmds into mm_struct if PMD is folded Kirill A. Shutemov
2015-01-28 17:06 ` [PATCH 0/4] Introduce <linux/mm_struct.h> Guenter Roeck
2015-01-28 18:50 ` Guenter Roeck
2015-01-28 20:45 ` Kirill A. Shutemov
2015-01-28 21:18 ` Guenter Roeck
2015-01-28 21:16 ` Kirill A. Shutemov
-- strict thread matches above, loose matches on Subject: below --
2015-01-28 21:19 Guenter Roeck
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1422451064-109023-1-git-send-email-kirill.shutemov@linux.intel.com \
--to=kirill.shutemov@linux.intel.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=linux@roeck-us.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).