瀏覽代碼

[PATCH] splice: mark the io page as accessed

We should do that, since we do the LRU manipulation ourselves now. Suggested
by Nick Piggin.

Signed-off-by: Jens Axboe <axboe@suse.de>
Jens Axboe 19 年之前
父節點
當前提交
c7f21e4f5a
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      fs/splice.c

+ 1 - 0
fs/splice.c

@@ -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)) {