android_kernel_xiaomi_sm7250/include
Nick Piggin 7c8ee9a863 [PATCH] mm: simplify vmscan vs release refcounting
The VM has an interesting race where a page refcount can drop to zero, but it
is still on the LRU lists for a short time.  This was solved by testing a 0->1
refcount transition when picking up pages from the LRU, and dropping the
refcount in that case.

Instead, use atomic_add_unless to ensure we never pick up a 0 refcount page
from the LRU, thus a 0 refcount page will never have its refcount elevated
until it is allocated again.

Signed-off-by: Nick Piggin <npiggin@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-03-22 07:53:57 -08:00
..
acpi
asm-alpha
asm-arm [ARM] Fix cosmetic typo in asm/irq.h 2006-03-20 10:12:31 +00:00
asm-arm26
asm-cris
asm-frv
asm-generic [PATCH] add EXPORT_SYMBOL_GPL_FUTURE() 2006-03-20 13:42:58 -08:00
asm-h8300
asm-i386 [PATCH] don't call check_acpi_pci() on x86 with ACPI disabled 2006-03-22 07:53:54 -08:00
asm-ia64 Pull sn2-reduce-kmalloc-wrap into release branch 2006-03-21 08:22:56 -08:00
asm-m32r
asm-m68k
asm-m68knommu
asm-mips Merge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/usb-2.6 2006-03-21 09:25:47 -08:00
asm-parisc
asm-powerpc
asm-ppc
asm-s390 [PATCH] mm: remove set_pgdir leftovers 2006-03-22 07:53:56 -08:00
asm-sh
asm-sh64 [PATCH] mm: remove set_pgdir leftovers 2006-03-22 07:53:56 -08:00
asm-sparc [SPARC]: Fixup SO_PEERSEC value on 32-bit sparc. 2006-03-20 22:53:42 -08:00
asm-sparc64 [SPARC64]: Fix 2 bugs in huge page support. 2006-03-20 01:17:17 -08:00
asm-um
asm-v850
asm-x86_64
asm-xtensa
keys
linux [PATCH] mm: simplify vmscan vs release refcounting 2006-03-22 07:53:57 -08:00
math-emu
media V4L/DVB (3513): Remove saa711x driver 2006-03-21 08:53:40 -08:00
mtd
net [LLC]: llc_mac_hdr_init const arguments 2006-03-20 22:59:36 -08:00
pcmcia
rdma IB/umad: Add support for large RMPP transfers 2006-03-20 10:08:23 -08:00
rxrpc
scsi
sound
video