From: Christoph Hellwig hch@lst.de
mainline inclusion from mainline-v6.1-rc1 commit 527eb453bbfe65e5a55a90edfb1f30b477e36b8c category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I8BCRJ CVE: NA
Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?i...
--------------------------------
To properly account for all refaults from file system logic, file systems need to call psi_memstall_enter directly, so export it.
Signed-off-by: Christoph Hellwig hch@lst.de Acked-by: Johannes Weiner hannes@cmpxchg.org Link: https://lore.kernel.org/r/20220915094200.139713-3-hch@lst.de Signed-off-by: Jens Axboe axboe@kernel.dk Signed-off-by: Liu Shixin liushixin2@huawei.com --- kernel/sched/psi.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/kernel/sched/psi.c b/kernel/sched/psi.c index 11a43dccb7fcb..33bf2afce83d6 100644 --- a/kernel/sched/psi.c +++ b/kernel/sched/psi.c @@ -942,6 +942,7 @@ void psi_memstall_enter(unsigned long *flags)
rq_unlock_irq(rq, &rf); } +EXPORT_SYMBOL_GPL(psi_memstall_enter);
/** * psi_memstall_leave - mark the end of an memory stall section @@ -973,6 +974,7 @@ void psi_memstall_leave(unsigned long *flags)
rq_unlock_irq(rq, &rf); } +EXPORT_SYMBOL_GPL(psi_memstall_leave);
#ifdef CONFIG_CGROUPS int psi_cgroup_alloc(struct cgroup *cgroup)