]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[PATCH] splice: mark the io page as accessed
authorJens Axboe <axboe@suse.de>
Mon, 10 Apr 2006 07:01:01 +0000 (09:01 +0200)
committerJens Axboe <axboe@suse.de>
Mon, 10 Apr 2006 07:01:01 +0000 (09:01 +0200)
We should do that, since we do the LRU manipulation ourselves now. Suggested
by Nick Piggin.

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

index bfa42a277bb874ac94a34db4d3c7f593afc5410c..b450acdff3975e86713e87df718e57ca74f0d7b9 100644 (file)
@@ -501,6 +501,7 @@ find_page:
        } else if (ret)
                goto out;
 
+       mark_page_accessed(page);
        balance_dirty_pages_ratelimited(mapping);
 out:
        if (!(buf->flags & PIPE_BUF_FLAG_STOLEN)) {