Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp56771lqe; Fri, 5 Apr 2024 12:26:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXLJ1Cy1CBo66mV9MxCsW4jcgQJxzid4pgiOn6NTJO3ZkZdKy4yBlVv8bau06RXhxmHH7cH4BoSb0II6/eLbHj5BR9uBegx6xChAPiRKQ== X-Google-Smtp-Source: AGHT+IEaUfZI5GErwEsQorjhC+Sq+actXwICQzncI6WaFkODEmgGExtQEpznimpyv1dUSXRPH0WR X-Received: by 2002:a17:902:7484:b0:1e2:8eee:ca5a with SMTP id h4-20020a170902748400b001e28eeeca5amr2148923pll.52.1712345201526; Fri, 05 Apr 2024 12:26:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712345201; cv=pass; d=google.com; s=arc-20160816; b=KD2nHY2cU/OiW0Iv6Hmc/dbz630nJfGbWfKqTeNDRb+U1LaI10VS8DLSkh0WzBfB+Z AKkTdU/oCf0pJYFokfsZadnI5Otae8F5iiLBI+lBDgBeA6ND2WnkUyoy8fN+HDzD0QEm W4TO0+GzA366NCDmuTIfrh8sAU+JA0sDZoDcJuVVqYzX4lkqomwUOW2E+gHJAPC7Ebhf 7GINV63e8dDriujANJAFtCuwCd1kaQra/aou7NHysDax1Q7Yv+tVh6dW4zGY09B9sxQ4 0iE2cpZEe5Vmf6Af7+6Zcs0XBthdx9HQpVwRcNDXoSZfkfU6cfWHRI2bKMr0snHgrQrG 8knw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:to:cc:in-reply-to:date:subject:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:message-id:from :dkim-signature; bh=cQXOMqOMheA3j5jSfwBi1wa6nrelyPrvkpkakE4BB08=; fh=4PM7qzGIFblC1hu6O1AmY2cHC/hsjcZ9wmZ/pY8YAV4=; b=X9pAd+viZ8J/JvaaEUszV6zTwn1CBB4v6Tz9sF15pvIm2WjYBsbcFXHRsmMhmz3i5J MLXYDHxjCf6KFvCZIsutPgcOgVJAM8P//OR7lt+jj2DsmcxGYWbQxsm43gsYEv2JDv1v QL6mxjc6OGPmAVhS4k/1lqD/ybPPQnpDW598P6MAltfDO2EY2ZcmIk/tRp+J9MxGEdhv kXru1i1ufEZJh1s9JdUosFNDVSt5brwIMByvSdF7ztuWswoyhKdftKzhp6GNcZcRAv+z 3CSItbQWLz3MqjAHxLIlqeMu9nvfkkz3mSFR7cQXLB7dkZdif4oDwJj9yGuqZhsqhsEA 3Bfg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@dilger-ca.20230601.gappssmtp.com header.s=20230601 header.b=JwwL7s1n; arc=pass (i=1 spf=pass spfdomain=dilger.ca dkim=pass dkdomain=dilger-ca.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-133525-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133525-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id q7-20020a17090311c700b001e2616f14basi1832872plh.553.2024.04.05.12.26.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 12:26:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-133525-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@dilger-ca.20230601.gappssmtp.com header.s=20230601 header.b=JwwL7s1n; arc=pass (i=1 spf=pass spfdomain=dilger.ca dkim=pass dkdomain=dilger-ca.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-133525-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133525-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 2EA46283DD1 for ; Fri, 5 Apr 2024 19:26:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4336C171E66; Fri, 5 Apr 2024 19:26:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=dilger-ca.20230601.gappssmtp.com header.i=@dilger-ca.20230601.gappssmtp.com header.b="JwwL7s1n" Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 38B2C172BBC for ; Fri, 5 Apr 2024 19:26:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712345191; cv=none; b=sx17Amz248aC/kO1xdDztrVe4jOO9pXY/p9QuWxVlvnTI1vU7shS6bXmuO8Jkcpdi34C61imFT5KAXoG2D66O/8/Ms6GX91E1KBMvlMa7DQHj0Spyqar5hz9MzLOoNuBkPOaE0U7rOVpWQkz/ABHeWeJUF5NygTs/w5hypUawvI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712345191; c=relaxed/simple; bh=igTRZr89tia+YLzR4KTMyLw/RdwxKuEcuOFIb1fNNv0=; h=From:Message-Id:Content-Type:Mime-Version:Subject:Date: In-Reply-To:Cc:To:References; b=fl8zme7RJfZdWv/nP+Hj64yiG4BdNxskEqzC259ZPr1rZxYunrPfd0zYHyFfceLycqgOwucd4iy8nl7hm/2Gp6XBfkL0Gofxym2IQXe2c2+RZmaSZlypkr2D1nkeeD6T2o/qToN1jw5/phjLKB9PaGSryMnbhxYPBMGdaURQlXo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=dilger.ca; spf=pass smtp.mailfrom=dilger.ca; dkim=pass (2048-bit key) header.d=dilger-ca.20230601.gappssmtp.com header.i=@dilger-ca.20230601.gappssmtp.com header.b=JwwL7s1n; arc=none smtp.client-ip=209.85.214.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=dilger.ca Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=dilger.ca Received: by mail-pl1-f170.google.com with SMTP id d9443c01a7336-1e2232e30f4so23083495ad.2 for ; Fri, 05 Apr 2024 12:26:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dilger-ca.20230601.gappssmtp.com; s=20230601; t=1712345188; x=1712949988; darn=vger.kernel.org; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:from:to:cc:subject:date:message-id:reply-to; bh=cQXOMqOMheA3j5jSfwBi1wa6nrelyPrvkpkakE4BB08=; b=JwwL7s1nnjT0XEPHH854uf8UB/5Ew/XwJyG2c4b6z1+L4iBvtI8Y72RmNuuhp+xyYa sofkns2NXmcD4b0GtzJgndS8ik+n/dAkqrfAu0VPgoWGObq9DiubHATMo9InirMAyWNA 3H2t5ElxQY4ctchIomFsRyVnfWsnC181k02mR1AurKz1nrUujpKnnsGJWkQphmva4Q8Z x75b4Wrk7MxYBEN5rkjeRyKoAtLzgfy+9Q44RzhHY/K2deK4fTGqt8NRkO3P2Gv154iy +YeAg/O6HC0h3RJxa+gbqaMNZWHqHp/4PsgTfZIG/fiDDWLhzcwslWRsrHoIsBhrk2FB Sa4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712345188; x=1712949988; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=cQXOMqOMheA3j5jSfwBi1wa6nrelyPrvkpkakE4BB08=; b=ndR1t0N6ZX8ul3tGK2fVx/Itu9006Coj7K1VZoTjdeBftsZofYUe2CH58sl9TQkILE yJ+eQpXyP3ZId3Xgc7Q6VnIMQ9RcR9WlLHOlFcMSbNHU41VyswFyi6Bun5nSFLOoHFRs pw7bPZaFmh7lJlOAryeGhdi5yh/ChAqKxDDxbBsQ4VA7J6WfrAbtjNCLk+hhRWbZ7D+P N/bO/bhRtkm6a3gfz4SNfihErfR9BACEiSwjxV4G+yn4wxqSELy95+IFKg+OKZnlcGmA rD6cCp8pXdz+p+QeYmMIrsO4cZz4H7Zh44wF1n+58x51C0MfhbAGBINueXrQ9j47kCnO R/TQ== X-Forwarded-Encrypted: i=1; AJvYcCVpux2GkFZq3COHeqfRg6DTIoiT3IEtE9qlrioIOcV2iOBL6vwlE0FWrz5PCBkI58w4dbHDkStJ3T7u+BidWvYnWp9hnSAFxvshcYEE X-Gm-Message-State: AOJu0YxR0Aro4reX0oVeVg+CHhg+pN0fnzHVMxJqYZJdG1wlMbDD73b+ BSZJKhhD/kvu1vUMKQBUg3BCa3s5Bw0kZN8J2U9wpZ25s9k/Ou792D64S0LmGLA= X-Received: by 2002:a17:902:7484:b0:1e2:8eee:ca5a with SMTP id h4-20020a170902748400b001e28eeeca5amr2148522pll.52.1712345188499; Fri, 05 Apr 2024 12:26:28 -0700 (PDT) Received: from cabot.adilger.int (S01068c763f81ca4b.cg.shawcable.net. [70.77.200.158]) by smtp.gmail.com with ESMTPSA id a5-20020a170902ee8500b001e088a9e2bcsm1953865pld.292.2024.04.05.12.26.26 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 05 Apr 2024 12:26:28 -0700 (PDT) From: Andreas Dilger Message-Id: Content-Type: multipart/signed; boundary="Apple-Mail=_538C0DAC-3BDC-46CE-A0D4-B4B59A2FD009"; protocol="application/pgp-signature"; micalg=pgp-sha256 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: [PATCH v3 08/13] f2fs: fiemap: add physical length to trace_f2fs_fiemap Date: Fri, 5 Apr 2024 13:28:36 -0600 In-Reply-To: Cc: Jonathan Corbet , Kent Overstreet , Brian Foster , Chris Mason , Josef Bacik , David Sterba , Jaegeuk Kim , Chao Yu , Alexander Viro , Christian Brauner , Jan Kara , =?utf-8?Q?Micka=C3=ABl_Sala=C3=BCn?= , linux-doc@vger.kernel.org, Linux Kernel Mailing List , linux-bcachefs@vger.kernel.org, linux-btrfs , linux-f2fs-devel@lists.sourceforge.net, linux-fsdevel@vger.kernel.org, kernel-team@meta.com To: Sweet Tea Dorminy References: X-Mailer: Apple Mail (2.3273) --Apple-Mail=_538C0DAC-3BDC-46CE-A0D4-B4B59A2FD009 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On Apr 3, 2024, at 1:22 AM, Sweet Tea Dorminy = wrote: >=20 > Signed-off-by: Sweet Tea Dorminy With the compat macro in the first patch in the series, IMHO this one should be merged into the next patch that actually sets the phys_len, since passing "0" for the phys_len isn't super useful by itself IMHO. Cheers, Andreas > --- > fs/f2fs/data.c | 6 +++--- > fs/f2fs/inline.c | 2 +- > include/trace/events/f2fs.h | 10 +++++++--- > 3 files changed, 11 insertions(+), 7 deletions(-) >=20 > diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c > index 87f8d828e038..34af1673461b 100644 > --- a/fs/f2fs/data.c > +++ b/fs/f2fs/data.c > @@ -1836,7 +1836,7 @@ static int f2fs_xattr_fiemap(struct inode = *inode, >=20 > err =3D fiemap_fill_next_extent( > fieinfo, 0, phys, len, 0, flags); > - trace_f2fs_fiemap(inode, 0, phys, len, flags, err); > + trace_f2fs_fiemap(inode, 0, phys, len, 0, flags, err); > if (err) > return err; > } > @@ -1863,7 +1863,7 @@ static int f2fs_xattr_fiemap(struct inode = *inode, > if (phys) { > err =3D fiemap_fill_next_extent( > fieinfo, 0, phys, len, 0, flags); > - trace_f2fs_fiemap(inode, 0, phys, len, flags, err); > + trace_f2fs_fiemap(inode, 0, phys, len, 0, flags, err); > } >=20 > return (err < 0 ? err : 0); > @@ -1982,7 +1982,7 @@ int f2fs_fiemap(struct inode *inode, struct = fiemap_extent_info *fieinfo, >=20 > ret =3D fiemap_fill_next_extent(fieinfo, logical, > phys, size, 0, flags); > - trace_f2fs_fiemap(inode, logical, phys, size, flags, = ret); > + trace_f2fs_fiemap(inode, logical, phys, size, 0, flags, = ret); > if (ret) > goto out; > size =3D 0; > diff --git a/fs/f2fs/inline.c b/fs/f2fs/inline.c > index 49d2f87fe048..235b0d72f6fc 100644 > --- a/fs/f2fs/inline.c > +++ b/fs/f2fs/inline.c > @@ -808,7 +808,7 @@ int f2fs_inline_data_fiemap(struct inode *inode, > (char *)F2FS_INODE(ipage); > err =3D fiemap_fill_next_extent( > fieinfo, start, byteaddr, ilen, 0, flags); > - trace_f2fs_fiemap(inode, start, byteaddr, ilen, flags, err); > + trace_f2fs_fiemap(inode, start, byteaddr, ilen, 0, flags, err); > out: > f2fs_put_page(ipage, 1); > return err; > diff --git a/include/trace/events/f2fs.h b/include/trace/events/f2fs.h > index 7ed0fc430dc6..63706eb3a5db 100644 > --- a/include/trace/events/f2fs.h > +++ b/include/trace/events/f2fs.h > @@ -2276,9 +2276,10 @@ TRACE_EVENT(f2fs_bmap, > TRACE_EVENT(f2fs_fiemap, >=20 > TP_PROTO(struct inode *inode, sector_t lblock, sector_t pblock, > - unsigned long long len, unsigned int flags, int ret), > + unsigned long long len, unsigned long long phys_len, > + unsigned int flags, int ret), >=20 > - TP_ARGS(inode, lblock, pblock, len, flags, ret), > + TP_ARGS(inode, lblock, pblock, len, phys_len, flags, ret), >=20 > TP_STRUCT__entry( > __field(dev_t, dev) > @@ -2286,6 +2287,7 @@ TRACE_EVENT(f2fs_fiemap, > __field(sector_t, lblock) > __field(sector_t, pblock) > __field(unsigned long long, len) > + __field(unsigned long long, phys_len) > __field(unsigned int, flags) > __field(int, ret) > ), > @@ -2296,16 +2298,18 @@ TRACE_EVENT(f2fs_fiemap, > __entry->lblock =3D lblock; > __entry->pblock =3D pblock; > __entry->len =3D len; > + __entry->phys_len =3D phys_len; > __entry->flags =3D flags; > __entry->ret =3D ret; > ), >=20 > TP_printk("dev =3D (%d,%d), ino =3D %lu, lblock:%lld, = pblock:%lld, " > - "len:%llu, flags:%u, ret:%d", > + "len:%llu, plen:%llu, flags:%u, ret:%d", > show_dev_ino(__entry), > (unsigned long long)__entry->lblock, > (unsigned long long)__entry->pblock, > __entry->len, > + __entry->phys_len, > __entry->flags, > __entry->ret) > ); > -- > 2.43.0 >=20 >=20 Cheers, Andreas --Apple-Mail=_538C0DAC-3BDC-46CE-A0D4-B4B59A2FD009 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org iQIzBAEBCAAdFiEEDb73u6ZejP5ZMprvcqXauRfMH+AFAmYQUOQACgkQcqXauRfM H+BUSQ//dbRTR76g+R9wqiRBS5vw0ahQgPCf6yTSReukjBaQF0M9oly6GAGm4nN2 ilNV7M4T5M8lAN4yil25IwWcYrIjz9BBygH6en1dbB+P/vkSHXIBebtR/a2rNS3/ jxT1O/usTLB0QCUh3wtetRyWPRoD9y0hMIIxdWuBOQVFTXHCptfJ2AGl5QB2TsY+ kI9Zovu7baYF0AwgTqMIZzWsm3Vvj4Cf6k7k5EApmXUKb1BVzQANexhmZHssr6XU BO6t9//3rDWYCkUsSI67TCmC64uGwYiCsu+4fYrVoQVO6D8YRcxWTfYh6qLTNPnA 50oFWH0R39X87I/L4iY2b2szG3956IQxJSZm0wdJSplMcJidylfOr88l1xRLe4qh Vk4v72XzN97rXc32qn20gcuiVqXKSzXAJjnmJdPOFMzBmfk2jD7TPNW+xRT0xLdS kGDZzEh7Iwh9vy/BUu/5nBXs1EZOLmit72jqeo8cT0nR/eZAgdX6N7LlLZQW0K2c 5D+tYcFAd7UTiTlt9yR1dv2vdNoIZVwhc24sUXyPhXdUq6G+VgvgadCjnjmu3HeB D9ZCKOzqvtmRkxvbGeqXAAYybdLMcWYmXBw0M9s6kEONeTy3qqqrLHCwI8lp406m xarUriKrfSZunKeZDwMJkrmNsZhOYS/JamFtZZInZW6nYKf9M5Q= =2SWR -----END PGP SIGNATURE----- --Apple-Mail=_538C0DAC-3BDC-46CE-A0D4-B4B59A2FD009--