]> git.baikalelectronics.ru Git - kernel.git/commitdiff
mm/filemap: make folio_put_wait_locked static
authorKe Sun <sunke@kylinos.cn>
Wed, 14 Sep 2022 02:17:38 +0000 (10:17 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 3 Oct 2022 21:03:15 +0000 (14:03 -0700)
It's only used in mm/filemap.c, since commit <ea8d8fdcd518>
("mm/migrate.c: rework migration_entry_wait() to not take a pageref").

Make it static.

Link: https://lkml.kernel.org/r/20220914021738.3228011-1-sunke@kylinos.cn
Signed-off-by: Ke Sun <sunke@kylinos.cn>
Reported-by: k2ci <kernel-bot@kylinos.cn>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/pagemap.h
mm/filemap.c

index 32846b6306dbd29b4cd0202c02cdbb5cec2bd4a7..23125ab87ded2acf40509b6cd31655a3ed8ea4a0 100644 (file)
@@ -1039,7 +1039,6 @@ static inline int wait_on_page_locked_killable(struct page *page)
        return folio_wait_locked_killable(page_folio(page));
 }
 
-int folio_put_wait_locked(struct folio *folio, int state);
 void wait_on_page_writeback(struct page *page);
 void folio_wait_writeback(struct folio *folio);
 int folio_wait_writeback_killable(struct folio *folio);
index aab125d423b8f9c7b5ee500b6d8c4bcfd0234c55..f27c93a581ab4a4fc9ba3f0f3d2a084791c976a9 100644 (file)
@@ -1460,7 +1460,7 @@ EXPORT_SYMBOL(folio_wait_bit_killable);
  *
  * Return: 0 if the folio was unlocked or -EINTR if interrupted by a signal.
  */
-int folio_put_wait_locked(struct folio *folio, int state)
+static int folio_put_wait_locked(struct folio *folio, int state)
 {
        return folio_wait_bit_common(folio, PG_locked, state, DROP);
 }