Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp8460469ybn; Tue, 1 Oct 2019 08:25:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqwflz5jsC3XJpBwDBxnFhWvhZ9RWiVDpW6X0hYMKPm6ARKXCzpUXPVGMU/PTc90epWj/jA7 X-Received: by 2002:a17:906:1e57:: with SMTP id i23mr24693506ejj.204.1569943502330; Tue, 01 Oct 2019 08:25:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569943502; cv=none; d=google.com; s=arc-20160816; b=qSX2vqofvHYWFxYRjpqG57XzBwZ4aMoBnxTW7Zo3czFAazBAX/g8/UpwtJdFkx1SFQ 0uCBr7x1qDxixk3p2OGLt2Dt1jR9bPFTUM55lFJQAUkT5DsVk3rSeAaI9Q7EU+IkQSE+ TN9JEm9eVimdLtPotSSmmnzx+GzUk1XNBG36vRfVcxtYsPyxwquuqp/dibPPet8StZ0/ at8C7qIn1j8/Z7bEZVjqACj6GclPuFbd9trG8KNN2mJIRW8W+yFKZZhwdFokMn9YVTlh LyDgqkTDUxH6es6jhyk1IL9snzEjuQIj2M/CvAgdf1OHfWUBgu8G1yGyC4dN6CmTykyX FPTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=vbosb6E4PjNIx1zs/DNbU9Zy23aClEWFSbBh6dd2pU8=; b=nLzIRE5DO8pHVTWw7ZJmTf/2N1o2Em4fQ+snSTkihwUvJKclC5Y6axF44csS2f5ZYi rHYpk0K1hOE+JEGnawvIw2BVYLPPNKoZYvfPWFbFkeMRLX3qVmdiXTajxru1kRf9cgbj WYxXyKHTPwTWo+mG3O1rG7c/taYi+F9laOUvTWpSpG0SGC5RKDj8Ri8iIG8zDoIk9qvE dtTl6P76t5z5mFFOEIdE2UoiAOx2jbOtvX7HoO/b2CFYrVM6kQ8LYCYnXBxnYRQmJ5nb mKfyVN1717DiP83098Z2Sq5kvQE77/AVXTT/Gz48sY6sZ+GGLqNeYwGU3RIUBYk81Tns UPjw== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g7si3865207ejd.78.2019.10.01.08.24.36; Tue, 01 Oct 2019 08:25:02 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389570AbfJAPXS (ORCPT + 99 others); Tue, 1 Oct 2019 11:23:18 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58946 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727246AbfJAPXS (ORCPT ); Tue, 1 Oct 2019 11:23:18 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 42167882EA; Tue, 1 Oct 2019 15:23:18 +0000 (UTC) Received: from bfoster (dhcp-41-2.bos.redhat.com [10.18.41.2]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 05F7D60C5D; Tue, 1 Oct 2019 15:23:15 +0000 (UTC) Date: Tue, 1 Oct 2019 11:23:14 -0400 From: Brian Foster To: Christoph Hellwig Cc: "Darrick J . Wong" , Damien Le Moal , Andreas Gruenbacher , linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 06/11] xfs: remove the readpage / readpages tracing code Message-ID: <20191001152314.GB62608@bfoster> References: <20191001071152.24403-1-hch@lst.de> <20191001071152.24403-7-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191001071152.24403-7-hch@lst.de> User-Agent: Mutt/1.12.1 (2019-06-15) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Tue, 01 Oct 2019 15:23:18 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 01, 2019 at 09:11:47AM +0200, Christoph Hellwig wrote: > The actual iomap implementations now have equivalent trace points. > > Signed-off-by: Christoph Hellwig > --- Reviewed-by: Brian Foster > 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 >