Skip to content

Commit 29269ad

Browse files
Matthew Wilcox (Oracle)akpm00
authored andcommitted
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>
1 parent 4fbb7e7 commit 29269ad

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

include/linux/pagemap.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -414,14 +414,6 @@ static inline struct address_space *page_file_mapping(struct page *page)
414414
return folio_file_mapping(page_folio(page));
415415
}
416416

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-
425417
/**
426418
* folio_inode - Get the host inode for this folio.
427419
* @folio: The folio.

0 commit comments

Comments
 (0)