ntfs: use find_get_page_flags() to mark page accessed as it is no longer marked later on
authorAnton Altaparmakov <anton@tuxera.com>
Thu, 9 Oct 2014 22:24:46 +0000 (15:24 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 10 Oct 2014 02:25:46 +0000 (22:25 -0400)
commit5272d036b280d43a06ab790030609225480d2009
tree92d724e9f3a3eeb5c92f9b9b9d486f04f453bc18
parent2f82df0f3e6e89867695956aa061b464fe2c8958
ntfs: use find_get_page_flags() to mark page accessed as it is no longer marked later on

Mel Gorman's commit 2457aec63745 ("mm: non-atomically mark page accessed
during page cache allocation where possible") removed mark_page_accessed()
calls from NTFS without updating the matching find_lock_page() to
find_get_page_flags(GFP_LOCK | FGP_ACCESSED) thus causing the page to
never be marked accessed.

This patch fixes that.

Signed-off-by: Anton Altaparmakov <anton@tuxera.com>
Cc: Mel Gorman <mel@csn.ul.ie>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ntfs/file.c
fs/ntfs/super.c