diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2023-06-21 17:45:55 +0100 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-06-23 16:59:30 -0700 |
commit | 1a0fc811f5f5addf54499826bd1b6e34e917491c (patch) | |
tree | 8452f5dd9b0d782c10f5d1a775a84851dc02b26b /mm/internal.h | |
parent | 1e0877d58b1e22517d8939b22b963c043e6c63fd (diff) | |
download | linux-1a0fc811f5f5addf54499826bd1b6e34e917491c.tar.gz linux-1a0fc811f5f5addf54499826bd1b6e34e917491c.tar.bz2 linux-1a0fc811f5f5addf54499826bd1b6e34e917491c.zip |
mm: rename invalidate_mapping_pagevec to mapping_try_invalidate
We don't use pagevecs for the LRU cache any more, and we don't know that
the failed invalidations were due to the folio being in an LRU cache. So
rename it to be more accurate.
Link: https://lkml.kernel.org/r/20230621164557.3510324-12-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/internal.h')
-rw-r--r-- | mm/internal.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/internal.h b/mm/internal.h index b0d8778dd910..a19255615bf2 100644 --- a/mm/internal.h +++ b/mm/internal.h @@ -133,8 +133,8 @@ int truncate_inode_folio(struct address_space *mapping, struct folio *folio); bool truncate_inode_partial_folio(struct folio *folio, loff_t start, loff_t end); long invalidate_inode_page(struct page *page); -unsigned long invalidate_mapping_pagevec(struct address_space *mapping, - pgoff_t start, pgoff_t end, unsigned long *nr_pagevec); +unsigned long mapping_try_invalidate(struct address_space *mapping, + pgoff_t start, pgoff_t end, unsigned long *nr_failed); /** * folio_evictable - Test whether a folio is evictable. |