]> git.ipfire.org Git - people/ms/linux.git/commitdiff
mm: Remove __delete_from_page_cache()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 29 Jun 2022 00:41:40 +0000 (20:41 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 29 Jun 2022 12:51:05 +0000 (08:51 -0400)
This wrapper is no longer used.  Remove it and all references to it.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
fs/inode.c
include/linux/pagemap.h
mm/memory-failure.c
mm/shmem.c
mm/truncate.c

index bd4da9c5207eabb0cec8722ee3d30acd963169bf..d2bdc407c94b0e7e7e9d9745826f785e141f424e 100644 (file)
@@ -604,7 +604,7 @@ void clear_inode(struct inode *inode)
 {
        /*
         * We have to cycle the i_pages lock here because reclaim can be in the
-        * process of removing the last page (in __delete_from_page_cache())
+        * process of removing the last page (in __filemap_remove_folio())
         * and we must not free the mapping under it.
         */
        xa_lock_irq(&inode->i_data.i_pages);
index ce96866fbec4050c8826c9809b5156a15f6ba410..44b9c265a23451aba89bf70b3e3539b8c3ebf334 100644 (file)
@@ -1107,10 +1107,6 @@ int filemap_add_folio(struct address_space *mapping, struct folio *folio,
 void filemap_remove_folio(struct folio *folio);
 void delete_from_page_cache(struct page *page);
 void __filemap_remove_folio(struct folio *folio, void *shadow);
-static inline void __delete_from_page_cache(struct page *page, void *shadow)
-{
-       __filemap_remove_folio(page_folio(page), shadow);
-}
 void replace_page_cache_page(struct page *old, struct page *new);
 void delete_from_page_cache_batch(struct address_space *mapping,
                                  struct folio_batch *fbatch);
index b85661cbdc4aa06b2d4c713eff073ac0ca00a587..a859486ddda96e73671e6f2fa42cbadf3383fefe 100644 (file)
@@ -1935,7 +1935,7 @@ try_again:
 
        /*
         * Now take care of user space mappings.
-        * Abort on fail: __delete_from_page_cache() assumes unmapped page.
+        * Abort on fail: __filemap_remove_folio() assumes unmapped page.
         */
        if (!hwpoison_user_mappings(p, pfn, flags, p)) {
                action_result(pfn, MF_MSG_UNMAP_FAILED, MF_IGNORED);
index a6f56530813387b8767a0a98f51324de58a6584c..b42dfb01c634b80ba62a92c2880efb6d5fd2ef64 100644 (file)
@@ -392,7 +392,7 @@ void shmem_uncharge(struct inode *inode, long pages)
        struct shmem_inode_info *info = SHMEM_I(inode);
        unsigned long flags;
 
-       /* nrpages adjustment done by __delete_from_page_cache() or caller */
+       /* nrpages adjustment done by __filemap_remove_folio() or caller */
 
        spin_lock_irqsave(&info->lock, flags);
        info->alloced -= pages;
index ab50d0d59a2afc29cc477b45ee28ff1cc8202e89..0b0708bf935f3e9b80a8042157c38b9219745401 100644 (file)
@@ -443,7 +443,7 @@ EXPORT_SYMBOL(truncate_inode_pages_range);
  * mapping->invalidate_lock.
  *
  * Note: When this function returns, there can be a page in the process of
- * deletion (inside __delete_from_page_cache()) in the specified range.  Thus
+ * deletion (inside __filemap_remove_folio()) in the specified range.  Thus
  * mapping->nrpages can be non-zero when this function returns even after
  * truncation of the whole mapping.
  */