Commit dd394c2e authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] tmpfs 7/7 write mark_page_accessed

From: Hugh Dickins <hugh@veritas.com>

mm/filemap.c's generic_file_aio_write_nolock changed SetPageReferenced
to mark_page_accessed in -test3: now follow that in shmem_file_write.
parent 1c779419
......@@ -1243,8 +1243,7 @@ shmem_file_write(struct file *file, const char __user *buf, size_t count, loff_t
flush_dcache_page(page);
set_page_dirty(page);
if (!PageReferenced(page))
SetPageReferenced(page);
mark_page_accessed(page);
page_cache_release(page);
if (left) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment