kernel-ark/mm
Linus Torvalds 3d80636a0d Fix memory ordering bug in page reclaim
As noticed by Nick Piggin, we need to make sure that we check the page
count before we check for PageDirty, since the dirty check is only valid
if the count implies that we're the only possible ones holding the page.

We always did do this, but the code needs a read-memory-barrier to make
sure that the orderign is also honored by the CPU.

(The writer side is ordered due to the atomic decrement and test on the
page count, see the discussion on linux-kernel)

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-10-16 17:36:06 -07:00
..
bootmem.c
fadvise.c
filemap_xip.c
filemap.c
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 flags annotations - part 1 2005-10-08 15:00:57 -07:00
hugetlb.c
internal.h
Kconfig [PATCH] fix mm/Kconfig spelling 2005-09-17 11:50:01 -07:00
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/filemap.c: make two functions static 2005-09-10 10:06:25 -07:00
mempolicy.c [PATCH] gfp flags annotations - part 1 2005-10-08 15:00:57 -07:00
mempool.c [PATCH] gfp flags annotations - part 1 2005-10-08 15:00:57 -07:00
mincore.c
mlock.c
mmap.c
mprotect.c
mremap.c
msync.c
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] gfp flags annotations - part 1 2005-10-08 15:00:57 -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 [PATCH] readahead: reset cache_hit earlier 2005-09-07 16:57:25 -07:00
rmap.c
shmem.c [PATCH] gfp flags annotations - part 1 2005-10-08 15:00:57 -07:00
slab.c [PATCH] gfp flags annotations - part 1 2005-10-08 15:00:57 -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
thrash.c
tiny-shmem.c
truncate.c
vmalloc.c [PATCH] gfp flags annotations - part 1 2005-10-08 15:00:57 -07:00
vmscan.c Fix memory ordering bug in page reclaim 2005-10-16 17:36:06 -07:00