[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 bfa42a2..b450acd 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)) {