kernel-ark/mm
Hugh Dickins 1bb3630e89 [PATCH] mm: ptd_alloc inline and out
It seems odd to me that, whereas pud_alloc and pmd_alloc test inline, only
calling out-of-line __pud_alloc __pmd_alloc if allocation needed,
pte_alloc_map and pte_alloc_kernel are entirely out-of-line.  Though it does
add a little to kernel size, change them to macros testing inline, calling
__pte_alloc or __pte_alloc_kernel to allocate out-of-line.  Mark none of them
as fastcalls, leave that to CONFIG_REGPARM or not.

It also seems more natural for the out-of-line functions to leave the offset
calculation and map to the inline, which has to do it anyway for the common
case.  At least mremap move wants __pte_alloc without _map.

Macros rather than inline functions, certainly to avoid the header file issues
which arise from CONFIG_HIGHPTE needing kmap_types.h, but also in case any
architectures I haven't built would have other such problems.

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-10-29 21:40:40 -07:00
..
bootmem.c [PATCH] core remove PageReserved 2005-10-29 21:40:39 -07:00
fadvise.c
filemap_xip.c [PATCH] core remove PageReserved 2005-10-29 21:40:39 -07:00
filemap.c [PATCH] mm: page fault handlers tidyup 2005-10-29 21:40:37 -07:00
filemap.h
fremap.c [PATCH] mm: update_hiwaters just in time 2005-10-29 21:40:39 -07:00
highmem.c
hugetlb.c [PATCH] mm: update_hiwaters just in time 2005-10-29 21:40:39 -07:00
internal.h
Kconfig
madvise.c [PATCH] core remove PageReserved 2005-10-29 21:40:39 -07:00
Makefile
memory.c [PATCH] mm: ptd_alloc inline and out 2005-10-29 21:40:40 -07:00
mempolicy.c [PATCH] core remove PageReserved 2005-10-29 21:40:39 -07:00
mempool.c
mincore.c
mlock.c
mmap.c [PATCH] mm: ia64 use expand_upwards 2005-10-29 21:40:39 -07:00
mprotect.c [PATCH] core remove PageReserved 2005-10-29 21:40:39 -07:00
mremap.c [PATCH] mm: ptd_alloc inline and out 2005-10-29 21:40:40 -07:00
msync.c [PATCH] core remove PageReserved 2005-10-29 21:40:39 -07:00
nommu.c [PATCH] mm: update_hiwaters just in time 2005-10-29 21:40:39 -07:00
oom_kill.c
page_alloc.c [PATCH] core remove PageReserved 2005-10-29 21:40:39 -07:00
page_io.c
page-writeback.c
pdflush.c
prio_tree.c
readahead.c
rmap.c [PATCH] mm: update_hiwaters just in time 2005-10-29 21:40:39 -07:00
shmem.c [PATCH] core remove PageReserved 2005-10-29 21:40:39 -07:00
slab.c [PATCH] slab: add additional debugging to detect slabs from the wrong node 2005-10-29 21:40:36 -07:00
sparse.c
swap_state.c
swap.c [PATCH] core remove PageReserved 2005-10-29 21:40:39 -07:00
swapfile.c [PATCH] mm: rss = file_rss + anon_rss 2005-10-29 21:40:38 -07:00
thrash.c [PATCH] swaptoken tuning 2005-10-29 21:40:35 -07:00
tiny-shmem.c
truncate.c
vmalloc.c [PATCH] mm: init_mm without ptlock 2005-10-29 21:40:40 -07:00
vmscan.c [PATCH] shrink_list(): skip anon pages if not may_swap 2005-10-29 21:40:36 -07:00