mm: Add a walk_page_mapping() function to the pagewalk code
authorThomas Hellstrom <thellstrom@vmware.com>
Tue, 1 Oct 2019 09:17:34 +0000 (11:17 +0200)
committerThomas Hellstrom <thellstrom@vmware.com>
Wed, 6 Nov 2019 12:02:43 +0000 (13:02 +0100)
commitecaad8aca20432fa60821282d8ff479629c9f7b9
treef654d60d4a7853d2f4f74d510906831c7eb099fb
parentace88f1018b88167a78bafd545d30816d6e207bf
mm: Add a walk_page_mapping() function to the pagewalk code

For users that want to travers all page table entries pointing into a
region of a struct address_space mapping, introduce a walk_page_mapping()
function.

The walk_page_mapping() function will be initially be used for dirty-
tracking in virtual graphics drivers.

Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Rik van Riel <riel@surriel.com>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Huang Ying <ying.huang@intel.com>
Cc: Jérôme Glisse <jglisse@redhat.com>
Cc: Kirill A. Shutemov <kirill@shutemov.name>
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/pagewalk.h
mm/pagewalk.c