From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A43E5C6FA89 for ; Sat, 10 Sep 2022 06:51:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229780AbiIJGvU (ORCPT ); Sat, 10 Sep 2022 02:51:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53590 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229550AbiIJGvT (ORCPT ); Sat, 10 Sep 2022 02:51:19 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21E062B18F; Fri, 9 Sep 2022 23:51:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=5boGn7vQhK1/qyQ9CrG6mQXzf4WCqUbSGuj00WF3en4=; b=GJmfyYiSjVHZYw5b9vVusVFTJt 0PSWAGmPJboxa1YQqL5UH68Ksc+TeI9ogIFTsYh+fzj77xXzUEnAUEKXJjUy4pHujRM5ZRP9JXgdC 7k7z+FVbg+sn2ZDxX9yRO5VKSjwvR3h21uqvVq8qDBCl8lxf1TL6tQIVuc+dRWQNDRQSNItRDrU5C C8/67qIXRinUlBjrmE9fRTTmYP0f+2rhs7rOxts84LIB3Hx8yX6GrxJnDnRHaannnal3fweRkxY2j vTW8FnRKjlw+Bqvq4H5tMP3x/cYsjXdtnGnXghp9lRL7bdMuTuln7DQ7JH2AT/hxr3YVD+2zgluAt /UC45XtQ==; Received: from [2001:4bb8:198:38af:e8dc:dbbd:a9d:5c54] (helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1oWuKX-006pZ6-Rp; Sat, 10 Sep 2022 06:51:06 +0000 From: Christoph Hellwig To: Jens Axboe , Matthew Wilcox , Johannes Weiner , Suren Baghdasaryan , Andrew Morton Cc: Chris Mason , Josef Bacik , David Sterba , Gao Xiang , Chao Yu , linux-block@vger.kernel.org, linux-btrfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-erofs@lists.ozlabs.org, linux-mm@kvack.org Subject: improve pagecache PSI annotations Date: Sat, 10 Sep 2022 08:50:53 +0200 Message-Id: <20220910065058.3303831-1-hch@lst.de> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org 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(-)