Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp713793pxb; Tue, 5 Apr 2022 19:58:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwOmI7giwtO9PkObUoF0oxmCYWlvxx2tvKIFStCcLhw6qJBypnOyXE9L5SLbd0gRnZ2dD+F X-Received: by 2002:a17:902:e892:b0:153:db4c:8ccf with SMTP id w18-20020a170902e89200b00153db4c8ccfmr6526607plg.17.1649213921232; Tue, 05 Apr 2022 19:58:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649213921; cv=none; d=google.com; s=arc-20160816; b=vhNBtpVs3paPiE2g8t3aPxCF/R65b+OjpLJRoIZjPa7UFtLqYqMz16OPzmzgQw76WH 4HBXCPeMha0y6Kce0yUXWgoeMQm8wl4v31YrhlqvjMpsqBdHPwzS9zVqQrCm3zzqCH5S PnIcndR4JiI7gfY4J+mC0Qq8xVA7UkQBWtRspM5dbuR2RR9bGRGXJxa+crU1YKMEeeLW 3DEWB1BM7anvZq2pRZxxZhNBonw7B5JaeYXw557jeKesgKymvkYbqI/BVsqs6MZL6BYA PcLNfkSDBd5mzXxbiNPDQLVoz9yoBSY8rgMkbbecLTmaplPZETb9hzRnG9eQlIkyOnNf MLlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ajePdOnDJxWS4hxjEhZeeRJu+fxLKiZJCpRqSMBIbzo=; b=zceRA9FRDD2VyLtWzvWb4aweqbbJRLd/YGqCwwHhfb94649bx7OIxbDAMRGt7YD9GM lgLrDz1xsHsICkEcbyfofNTVyaSMWu7lsfANha79QJjsXkFgHnSuN3I4XOJj9mFDA6JN sbtAB1NKfFDuLdn2yQSB7ECMrEAJsBD1PmyIrE9Ww9T7BzKtkP54beYcPf8IdzGv/ds2 JCCgMq93nOUU9qZPETdHzKX1ksNYkIW00NnyhR5FgSvRiFzPGZwrEBtYbFKRBPkMh0O3 Q7v3BzNXZm2xNJNnjKsZVoFSjSNhkGWtrQ/t6+KRgHWpSlSJJzZoStAzzB6noMPgdFFs rfbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=OCuENez1; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id c2-20020a170903234200b00155c657775asi3926805plh.32.2022.04.05.19.58.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Apr 2022 19:58:41 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=OCuENez1; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 65D9034AEAD; Tue, 5 Apr 2022 19:41:24 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241921AbiDEIgE (ORCPT + 99 others); Tue, 5 Apr 2022 04:36:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234042AbiDEH56 (ORCPT ); Tue, 5 Apr 2022 03:57:58 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F1BE96826; Tue, 5 Apr 2022 00:51:48 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 9A83BB81BB0; Tue, 5 Apr 2022 07:51:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 11BCDC36AE3; Tue, 5 Apr 2022 07:51:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649145099; bh=9w+H9RvQiAqbnv0t89CVqseGyEem3RzhqIHtFB3UxKo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OCuENez1Wj5ERpItfjD93VI+jyDjlJ0/J9QOOPbPbmOsPmlhLUkAGhZgzX0XW+rfw +MgNg703yTyScFFKqAOlMNImjsP4jWwHsShHK5KWi1ROQJn7qQwozuG9xzwMWOlwEp HVZBM/IHaB0fdpqYrQ1aKkca4gN7IJTd1+0J01T8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "Matthew Wilcox (Oracle)" , Damien Le Moal , Sasha Levin , Mike Marshall , David Howells Subject: [PATCH 5.17 0284/1126] iomap: Fix iomap_invalidatepage tracepoint Date: Tue, 5 Apr 2022 09:17:11 +0200 Message-Id: <20220405070415.949224018@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070407.513532867@linuxfoundation.org> References: <20220405070407.513532867@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Matthew Wilcox (Oracle) [ Upstream commit 1241ebeca3f94b417751cb3ff62454cefdac75bc ] This tracepoint is defined to take an offset in the file, not an offset in the folio. Fixes: 1ac994525b9d ("iomap: Remove pgoff from tracepoints") Signed-off-by: Matthew Wilcox (Oracle) Tested-by: Damien Le Moal Acked-by: Damien Le Moal Tested-by: Mike Marshall # orangefs Tested-by: David Howells # afs Signed-off-by: Sasha Levin --- fs/iomap/buffered-io.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/iomap/buffered-io.c b/fs/iomap/buffered-io.c index 6c51a75d0be6..d020a2e81a24 100644 --- a/fs/iomap/buffered-io.c +++ b/fs/iomap/buffered-io.c @@ -480,7 +480,8 @@ EXPORT_SYMBOL_GPL(iomap_releasepage); void iomap_invalidate_folio(struct folio *folio, size_t offset, size_t len) { - trace_iomap_invalidatepage(folio->mapping->host, offset, len); + trace_iomap_invalidatepage(folio->mapping->host, + folio_pos(folio) + offset, len); /* * If we're invalidating the entire folio, clear the dirty state -- 2.34.1