Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mm: remove page_mapping_file()

This function has no more users.

Link: https://lkml.kernel.org/r/20230802151406.3735276-31-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Matthew Wilcox (Oracle) and committed by
Andrew Morton
29269ad9 4fbb7e7f

-8
-8
include/linux/pagemap.h
··· 414 414 return folio_file_mapping(page_folio(page)); 415 415 } 416 416 417 - /* 418 - * For file cache pages, return the address_space, otherwise return NULL 419 - */ 420 - static inline struct address_space *page_mapping_file(struct page *page) 421 - { 422 - return folio_flush_mapping(page_folio(page)); 423 - } 424 - 425 417 /** 426 418 * folio_inode - Get the host inode for this folio. 427 419 * @folio: The folio.