mm: add find_get_entries_tag()

Add find_get_entries_tag() to the family of functions that include
find_get_entries(), find_get_pages() and find_get_pages_tag().  This is
needed for DAX dirty page handling because we need a list of both page
offsets and radix tree entries ('indices' and 'entries' in this
function) that are marked with the PAGECACHE_TAG_TOWRITE tag.

Signed-off-by: Ross Zwisler <>
Reviewed-by: Jan Kara <>
Cc: "H. Peter Anvin" <>
Cc: "J. Bruce Fields" <>
Cc: "Theodore Ts'o" <>
Cc: Alexander Viro <>
Cc: Andreas Dilger <>
Cc: Dave Chinner <>
Cc: Ingo Molnar <>
Cc: Jeff Layton <>
Cc: Matthew Wilcox <>
Cc: Thomas Gleixner <>
Cc: Dan Williams <>
Cc: Matthew Wilcox <>
Cc: Dave Hansen <>
Signed-off-by: Andrew Morton <>
Signed-off-by: Linus Torvalds <>
2 files changed