]> err.no Git - linux-2.6/commit
[PATCH] splice: fix page stealing LRU handling.
authorJens Axboe <axboe@suse.de>
Sun, 2 Apr 2006 21:11:04 +0000 (23:11 +0200)
committerJens Axboe <axboe@suse.de>
Sun, 2 Apr 2006 21:11:04 +0000 (23:11 +0200)
commit3e7ee3e7b36fa4e2d88d8fb0a2577be95fc4636d
tree46e972e78122f8a719dafc87572bffb25716e745
parentad8d6f0a783ffa2ff9b0cf09910b889715772201
[PATCH] splice: fix page stealing LRU handling.

Originally from Nick Piggin, just adapted to the newer branch.

You can't check PageLRU without holding zone->lru_lock.  The page
release code can get away with it only because the page refcount is 0 at
that point. Also, you can't reliably remove pages from the LRU unless
the refcount is 0. Ever.

Signed-off-by: Nick Piggin <nickpiggin@yahoo.com.au>
Signed-off-by: Jens Axboe <axboe@suse.de>
fs/pipe.c
fs/splice.c
include/linux/pipe_fs_i.h