sched/psi: export psi_memstall_{enter,leave}
authorChristoph Hellwig <hch@lst.de>
Thu, 15 Sep 2022 09:41:57 +0000 (10:41 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 20 Sep 2022 14:24:38 +0000 (08:24 -0600)
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>
kernel/sched/psi.c

index ec66b40..688e847 100644 (file)
@@ -921,6 +921,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
@@ -950,6 +951,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)