improve pagecache PSI annotations
Jens Axboe
axboe at kernel.dk
Sat Sep 10 21:32:25 AEST 2022
On 9/10/22 12:50 AM, Christoph Hellwig wrote:
> Hi all,
>
> currently the VM tries to abuse the block layer submission path for
> the page cache PSI annotations. This series instead annotates the
> ->read_folio and ->readahead calls in the core VM code, and then
> only deals with the odd direct add_to_page_cache_lru calls manually.
>
> Diffstat:
> block/bio.c | 8 --------
> block/blk-core.c | 17 -----------------
> fs/btrfs/compression.c | 14 ++++++++++++--
> fs/direct-io.c | 2 --
> fs/erofs/zdata.c | 13 ++++++++++++-
> include/linux/blk_types.h | 1 -
> include/linux/pagemap.h | 2 ++
> kernel/sched/psi.c | 2 ++
> mm/filemap.c | 7 +++++++
> mm/readahead.c | 22 ++++++++++++++++++----
> 10 files changed, 53 insertions(+), 35 deletions(-)
Nice! It's always bothered me that we have this weird layering
here.
--
Jens Axboe
More information about the Linux-erofs
mailing list