android_kernel_xiaomi_sm8350/arch
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
..
alpha [PATCH] gfp_t: remaining bits of arch/* 2005-10-28 08:16:51 -07:00
arm Merge master.kernel.org:/home/rmk/linux-2.6-arm 2005-10-29 14:02:16 -07:00
arm26 [PATCH] Remove arch/arm26/boot/compressed/hw-bse.c 2005-09-17 11:49:59 -07:00
cris [NETFILTER]: Fix OOPSes on machines with discontiguous cpu numbering. 2005-10-13 14:41:23 -07:00
frv [PATCH] missing exports of do_settimeofday() variants 2005-10-29 10:35:07 -07:00
h8300 kbuild: h8300,m68knommu,sh,sh64 use generic asm-offsets.h support 2005-09-09 20:28:49 +02:00
i386 [PATCH] PCI fixup for Toshiba laptops and ohci1394 2005-10-28 15:37:02 -07:00
ia64 [PATCH] mm: vm_stat_account unshackled 2005-10-29 21:40:37 -07:00
m32r [PATCH] m32r: Fix smp.c for preempt kernel 2005-10-14 17:10:12 -07:00
m68k Merge master.kernel.org:/pub/scm/linux/kernel/git/sam/kbuild 2005-09-09 15:46:49 -07:00
m68knommu [PATCH] m68knommu: startup code for the Drangen Engine 68328 based board 2005-09-12 20:04:15 -07:00
mips Update MIPS defconfig files. 2005-10-29 19:32:54 +01:00
parisc Auto-update from upstream 2005-10-28 12:18:07 -04:00
ppc [PATCH] gfp_t: remaining bits of arch/* 2005-10-28 08:16:51 -07:00
ppc64 [PATCH] ppc64: Fix wrong register mapping in mpic driver 2005-10-26 10:39:43 -07:00
s390 [PATCH] s390 signal annotations 2005-09-29 08:46:27 -07:00
sh [PATCH] gfp_t: dma-mapping (sh) 2005-10-28 08:16:48 -07:00
sh64 [PATCH] missing exports of do_settimeofday() variants 2005-10-29 10:35:07 -07:00
sparc [SPARC32]: Revert IOMAP change eb98129eec 2005-10-10 21:02:26 -07:00
sparc64 [PATCH] mm: tlb_finish_mmu forget rss 2005-10-29 21:40:37 -07:00
um [PATCH] gfp_t: remaining bits of arch/* 2005-10-28 08:16:51 -07:00
v850 [PATCH] V850: C99 initializers for hw_interrupt_type structures 2005-09-10 10:06:27 -07:00
x86_64 [PATCH] gfp_t: dma-mapping (amd64) 2005-10-28 08:16:48 -07:00
xtensa [PATCH] gfp_t: dma-mapping (xtensa) 2005-10-28 08:16:49 -07:00