Skip to content

Commit

Permalink
mm: remove page_mapping_file()
Browse files Browse the repository at this point in the history
This function has no more users.

Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Matthew Wilcox (Oracle) <[email protected]>
Reviewed-by: Anshuman Khandual <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
  • Loading branch information
Matthew Wilcox (Oracle) authored and akpm00 committed Aug 16, 2023
1 parent 0a30cbd commit f322928
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions include/linux/pagemap.h
Original file line number Diff line number Diff line change
Expand Up @@ -414,14 +414,6 @@ static inline struct address_space *page_file_mapping(struct page *page)
return folio_file_mapping(page_folio(page));
}

/*
* For file cache pages, return the address_space, otherwise return NULL
*/
static inline struct address_space *page_mapping_file(struct page *page)
{
return folio_flush_mapping(page_folio(page));
}

/**
* folio_inode - Get the host inode for this folio.
* @folio: The folio.
Expand Down

0 comments on commit f322928

Please sign in to comment.