Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp3295215ybp; Sun, 6 Oct 2019 08:50:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqyJVHLUjgLnjQJ5TMybdfRyKzelbyfY7ppvcFiUyY0Q7QLIDp9D6oYtN2iwz6HSfvFk/wNt X-Received: by 2002:a17:906:3281:: with SMTP id 1mr20512518ejw.181.1570377050732; Sun, 06 Oct 2019 08:50:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570377050; cv=none; d=google.com; s=arc-20160816; b=cde8Eb4l+JBqaOyLYhm9ktopCz0igG9tQLgAOXgEZzwFyNw6Uz3LUYj/jaAqWTE9ov Eb+sJOXlCJG5kcR/VAqlXipnuEkE9FVfa76Qb8cBsYoXH7y5XQs/bYIKBVksfpDixECK ANw0Xwll15+pkofUrjPBoYEO8htVfV7muuAgAMKnE5BRUGE/GP3khrME15M+VMPvGpkE ZVk5XlI0GHnWkZPPiABWOfzzqr9oKmDo4KKNByJc3Z0xQT80Lq65Uhdef527IcirRLNI b2dNjXZUzrvFBbPy2ta2rflnkTsmfbOZebGxwN1FS0HMo2f1zM7MOOjOE83zPE5nFbP8 WV4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=LMjZtHXzVjeoe/ICRwzC57h0yo0UaAthgg1OY+Q7b4s=; b=kACUb/tZPia5URDcoLG2xHMaMGRtVSssFj7XMw7EqxZqhjWPM4zqXxtAAbQwtp0Ab9 Gjel2CWHQoabXx2If2gJtKIaAoy402NPAwPq8jdN7Nwp489WTJxzHGrV+mIU99mhCefD 8ttbRZH0xFSL4OyZ917yyG6wpe28JotIlC/iSPOGN17GOxhF/UbrurTzD7qs2/WXRwm2 YES3buNkYLQVbhynOJdaUT+w/RTk6ycYihvB11iRpYFomfwO+b0ngyMIf1n9oq37yGfS j3Bh/j0w1rjATapurA78Z+4Nvbu3bsmDUpDpn3KuHhW+mWh30tFuK0+C7fJ2Aor6nsFj +oFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=FKH2eklb; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i24si7587180edj.207.2019.10.06.08.50.27; Sun, 06 Oct 2019 08:50:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=FKH2eklb; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726826AbfJFPsm (ORCPT + 99 others); Sun, 6 Oct 2019 11:48:42 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:53530 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726806AbfJFPsj (ORCPT ); Sun, 6 Oct 2019 11:48:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From :Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=LMjZtHXzVjeoe/ICRwzC57h0yo0UaAthgg1OY+Q7b4s=; b=FKH2eklbD6wxLp4SHkFoNmdmyM oqXVC2jUyZr83aXhK2kgf8Em1mBoQCVahFve6kU0Id75/ybfeP9RLbnammP5BLE94VKI0vYEw8jvx lISGJcz0SFxKzkpZdp8OWBQB092Phr+4z0SQY+FsbPORx+tP1nntyyi1Ns3da/FZn4FBHCbplVJQ+ F1KitkDsNuzdYfWLEKcndOdv1TG7DJsg17K3g7MzXjlV3E6k2rlcfqq9RQBS/pHkfxt0q1xxQk18H DL2l4ViD/g96urp/zjpTsSuOgXn6OvAVrXX1QwRc4JKLTmnIUS891qyF2DU+HBg9mvmTuwaMyJ/dg DNQmiHNA==; Received: from [2001:4bb8:18c:4d4a:c70:4a89:bc61:3] (helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.92.2 #3 (Red Hat Linux)) id 1iH8lx-0008T6-Mx; Sun, 06 Oct 2019 15:48:38 +0000 From: Christoph Hellwig To: "Darrick J . Wong" Cc: Damien Le Moal , Andreas Gruenbacher , linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Brian Foster Subject: [PATCH 06/11] xfs: remove the readpage / readpages tracing code Date: Sun, 6 Oct 2019 17:46:03 +0200 Message-Id: <20191006154608.24738-7-hch@lst.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191006154608.24738-1-hch@lst.de> References: <20191006154608.24738-1-hch@lst.de> 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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The actual iomap implementations now have equivalent trace points. Signed-off-by: Christoph Hellwig Reviewed-by: Brian Foster Reviewed-by: Darrick J. Wong --- fs/xfs/xfs_aops.c | 2 -- fs/xfs/xfs_trace.h | 26 -------------------------- 2 files changed, 28 deletions(-) diff --git a/fs/xfs/xfs_aops.c b/fs/xfs/xfs_aops.c index f16d5f196c6b..b6101673c8fb 100644 --- a/fs/xfs/xfs_aops.c +++ b/fs/xfs/xfs_aops.c @@ -1160,7 +1160,6 @@ xfs_vm_readpage( struct file *unused, struct page *page) { - trace_xfs_vm_readpage(page->mapping->host, 1); return iomap_readpage(page, &xfs_iomap_ops); } @@ -1171,7 +1170,6 @@ xfs_vm_readpages( struct list_head *pages, unsigned nr_pages) { - trace_xfs_vm_readpages(mapping->host, nr_pages); return iomap_readpages(mapping, pages, nr_pages, &xfs_iomap_ops); } diff --git a/fs/xfs/xfs_trace.h b/fs/xfs/xfs_trace.h index eaae275ed430..eae4b29c174e 100644 --- a/fs/xfs/xfs_trace.h +++ b/fs/xfs/xfs_trace.h @@ -1197,32 +1197,6 @@ DEFINE_PAGE_EVENT(xfs_writepage); DEFINE_PAGE_EVENT(xfs_releasepage); DEFINE_PAGE_EVENT(xfs_invalidatepage); -DECLARE_EVENT_CLASS(xfs_readpage_class, - TP_PROTO(struct inode *inode, int nr_pages), - TP_ARGS(inode, nr_pages), - TP_STRUCT__entry( - __field(dev_t, dev) - __field(xfs_ino_t, ino) - __field(int, nr_pages) - ), - TP_fast_assign( - __entry->dev = inode->i_sb->s_dev; - __entry->ino = inode->i_ino; - __entry->nr_pages = nr_pages; - ), - TP_printk("dev %d:%d ino 0x%llx nr_pages %d", - MAJOR(__entry->dev), MINOR(__entry->dev), - __entry->ino, - __entry->nr_pages) -) - -#define DEFINE_READPAGE_EVENT(name) \ -DEFINE_EVENT(xfs_readpage_class, name, \ - TP_PROTO(struct inode *inode, int nr_pages), \ - TP_ARGS(inode, nr_pages)) -DEFINE_READPAGE_EVENT(xfs_vm_readpage); -DEFINE_READPAGE_EVENT(xfs_vm_readpages); - DECLARE_EVENT_CLASS(xfs_imap_class, TP_PROTO(struct xfs_inode *ip, xfs_off_t offset, ssize_t count, int whichfork, struct xfs_bmbt_irec *irec), -- 2.20.1