lkml.org 
[lkml]   [2023]   [Mar]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v4 29/36] mm: Remove page_mapping_file()
    Date
    This function has no more users.

    Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
    ---
    include/linux/pagemap.h | 8 --------
    1 file changed, 8 deletions(-)

    diff --git a/include/linux/pagemap.h b/include/linux/pagemap.h
    index e56c2023aa0e..a87113055b9c 100644
    --- a/include/linux/pagemap.h
    +++ b/include/linux/pagemap.h
    @@ -394,14 +394,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.
    --
    2.39.2
    \
     
     \ /
      Last update: 2023-03-27 01:00    [W:4.188 / U:0.052 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site