linux/mm
Hugh Dickins fc2acab31b [PATCH] mm: tlb_finish_mmu forget rss
zap_pte_range has been counting the pages it frees in tlb->freed, then
tlb_finish_mmu has used that to update the mm's rss.  That got stranger when I
added anon_rss, yet updated it by a different route; and stranger when rss and
anon_rss became mm_counters with special access macros.  And it would no
longer be viable if we're relying on page_table_lock to stabilize the
mm_counter, but calling tlb_finish_mmu outside that lock.

Remove the mmu_gather's freed field, let tlb_finish_mmu stick to its own
business, just decrement the rss mm_counter in zap_pte_range (yes, there was
some point to batching the update, and a subsequent patch restores that).  And
forget the anal paranoia of first reading the counter to avoid going negative
- if rss does go negative, just fix that bug.

Remove the mmu_gather's flushes and avoided_flushes from arm and arm26: no use
was being made of them.  But arm26 alone was actually using the freed, in the
way some others use need_flush: give it a need_flush.  arm26 seems to prefer
spaces to tabs here: respect that.

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:37 -07:00
..
bootmem.c [PATCH] swiotlb: make sure initial DMA allocations really are in DMA memory 2005-10-19 23:11:33 -07:00
fadvise.c
filemap_xip.c
filemap.c [PATCH] mm: page fault handlers tidyup 2005-10-29 21:40:37 -07:00
filemap.h
fremap.c [PATCH] Don't map the same page too much 2005-10-11 12:03:47 -07:00
highmem.c [PATCH] gfp_t: the rest 2005-10-28 08:16:51 -07:00
hugetlb.c [PATCH] Fix handling spurious page fault for hugetlb region 2005-10-20 09:02:07 -07:00
internal.h
Kconfig
madvise.c [PATCH] madvise: Avoid returning error code -EBADF for anonymous mappings 2005-10-11 09:46:54 -07:00
Makefile
memory.c [PATCH] mm: tlb_finish_mmu forget rss 2005-10-29 21:40:37 -07:00
mempolicy.c [PATCH] Remove near all BUGs in mm/mempolicy.c 2005-10-29 21:40:35 -07:00
mempool.c [PATCH] gfp_t: mm/* (easy parts) 2005-10-28 08:16:47 -07:00
mincore.c
mlock.c
mmap.c [PATCH] mm: exit_mmap need not reset 2005-10-29 21:40:37 -07:00
mprotect.c [PATCH] mm: vm_stat_account unshackled 2005-10-29 21:40:37 -07:00
mremap.c [PATCH] mm: move_page_tables by extents 2005-10-29 21:40:37 -07:00
msync.c [PATCH] mm: msync_pte_range progress 2005-10-29 21:40:36 -07:00
nommu.c [PATCH] gfp flags annotations - part 1 2005-10-08 15:00:57 -07:00
oom_kill.c [PATCH] gfp flags annotations - part 1 2005-10-08 15:00:57 -07:00
page_alloc.c [PATCH] mm: set per-cpu-pages lower threshold to zero 2005-10-29 21:40:35 -07:00
page_io.c [PATCH] gfp flags annotations - part 1 2005-10-08 15:00:57 -07:00
page-writeback.c
pdflush.c
prio_tree.c
readahead.c
rmap.c [PATCH] swaptoken tuning 2005-10-29 21:40:35 -07:00
shmem.c [PATCH] mm: page fault handlers tidyup 2005-10-29 21:40:37 -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 [PATCH] gfp flags annotations - part 1 2005-10-08 15:00:57 -07:00
swap.c
swapfile.c [PATCH] mm: anon is already wrprotected 2005-10-29 21:40:36 -07:00
thrash.c [PATCH] swaptoken tuning 2005-10-29 21:40:35 -07:00
tiny-shmem.c
truncate.c
vmalloc.c [PATCH] vmalloc_node 2005-10-29 21:40:35 -07:00
vmscan.c [PATCH] shrink_list(): skip anon pages if not may_swap 2005-10-29 21:40:36 -07:00