]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
mm: Remove wait_on_page_locked()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 18 Feb 2025 05:52:01 +0000 (05:52 +0000)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 4 Mar 2025 17:02:27 +0000 (17:02 +0000)
This compatibility wrapper has no callers left, so remove it.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
include/linux/pagemap.h
mm/filemap.c

index 45817e2106ee135208ee39c6a961bf1f37911bc0..b8c6fa320ee3df61473e044f0fa68400441a0b08 100644 (file)
@@ -1242,11 +1242,6 @@ static inline int folio_wait_locked_killable(struct folio *folio)
        return folio_wait_bit_killable(folio, PG_locked);
 }
 
-static inline void wait_on_page_locked(struct page *page)
-{
-       folio_wait_locked(page_folio(page));
-}
-
 void folio_end_read(struct folio *folio, bool success);
 void wait_on_page_writeback(struct page *page);
 void folio_wait_writeback(struct folio *folio);
index 804d7365680c1cef198ed453f1bd17bc66a7decc..09a2c59a1ccb0976677a4e78b75b7dfb318ad042 100644 (file)
@@ -1379,7 +1379,7 @@ repeat:
  * @ptl: already locked ptl. This function will drop the lock.
  *
  * Wait for a migration entry referencing the given page to be removed. This is
- * equivalent to put_and_wait_on_page_locked(page, TASK_UNINTERRUPTIBLE) except
+ * equivalent to folio_put_wait_locked(folio, TASK_UNINTERRUPTIBLE) except
  * this can be called without taking a reference on the page. Instead this
  * should be called while holding the ptl for the migration entry referencing
  * the page.