* + mm-filemap-make-folio_put_wait_locked-static.patch added to mm-unstable branch
@ 2022-09-14 22:53 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2022-09-14 22:53 UTC (permalink / raw)
To: mm-commits, kernel-bot, sunke, akpm
The patch titled
Subject: mm/filemap: make folio_put_wait_locked static
has been added to the -mm mm-unstable branch. Its filename is
mm-filemap-make-folio_put_wait_locked-static.patch
This patch will shortly appear at
https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/mm-filemap-make-folio_put_wait_locked-static.patch
This patch will later appear in the mm-unstable branch at
git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next via the mm-everything
branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there every 2-3 working days
------------------------------------------------------
From: Ke Sun <sunke@kylinos.cn>
Subject: mm/filemap: make folio_put_wait_locked static
Date: Wed, 14 Sep 2022 10:17:38 +0800
It's only used in mm/filemap.c, since commit <ffa65753c431>
("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 | 1 -
mm/filemap.c | 2 +-
2 files changed, 1 insertion(+), 2 deletions(-)
--- a/include/linux/pagemap.h~mm-filemap-make-folio_put_wait_locked-static
+++ a/include/linux/pagemap.h
@@ -1039,7 +1039,6 @@ static inline int wait_on_page_locked_ki
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);
--- a/mm/filemap.c~mm-filemap-make-folio_put_wait_locked-static
+++ a/mm/filemap.c
@@ -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);
}
_
Patches currently in -mm which might be from sunke@kylinos.cn are
mm-filemap-make-folio_put_wait_locked-static.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-09-14 22:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-14 22:53 + mm-filemap-make-folio_put_wait_locked-static.patch added to mm-unstable branch Andrew Morton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.