]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] splice: fix page LRU accounting
authorJens Axboe <axboe@suse.de>
Tue, 2 May 2006 13:03:27 +0000 (15:03 +0200)
committerJens Axboe <axboe@suse.de>
Tue, 2 May 2006 13:03:27 +0000 (15:03 +0200)
commit444870c4c9b7d1c4541a30038c3f05195ea01882
tree79591f70b57ef4504dc5c9584b7d8fcaa04faede
parente648a7c1b4e8ca0b9c9bc76da69aac9301bb5b9b
[PATCH] splice: fix page LRU accounting

Currently we rely on the PIPE_BUF_FLAG_LRU flag being set correctly
to know whether we need to fiddle with page LRU state after stealing it,
however for some origins we just don't know if the page is on the LRU
list or not.

So remove PIPE_BUF_FLAG_LRU and do this check/add manually in pipe_to_file()
instead.

Signed-off-by: Jens Axboe <axboe@suse.de>
fs/splice.c
include/linux/pipe_fs_i.h