]> git.baikalelectronics.ru Git - kernel.git/commit
erofs: add manual PSI accounting for the compressed address space
authorChristoph Hellwig <hch@lst.de>
Thu, 15 Sep 2022 09:41:59 +0000 (10:41 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 20 Sep 2022 14:24:38 +0000 (08:24 -0600)
commit4588a445adbaa241deaa0e4559aad832ba472fb9
treef49417e82714cc4c51e9aa8597a967e0ca627cd9
parent16e3d13d1e9f49c9abf99327b0799006f81a0857
erofs: add manual PSI accounting for the compressed address space

erofs uses an additional address space for compressed data read from disk
in addition to the one directly associated with the inode.  Reading into
the lower address space is open coded using add_to_page_cache_lru instead
of using the filemap.c helper for page allocation micro-optimizations,
which means it is not covered by the MM PSI annotations for ->read_folio
and ->readahead, so add manual ones instead.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Acked-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Link: https://lore.kernel.org/r/20220915094200.139713-5-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/erofs/zdata.c