Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp382804ybe; Mon, 2 Sep 2019 03:13:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqykNZwpRxyugg8xqHEJR033EzqlPaVyNgTZ0xryVvWrN5ZV3L1uY8U1FgTssXFPf/VkG6aV X-Received: by 2002:aa7:9ab8:: with SMTP id x24mr32634510pfi.98.1567419187098; Mon, 02 Sep 2019 03:13:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567419187; cv=none; d=google.com; s=arc-20160816; b=CPfzjEMghRrG8UbdmW5WUYEF8Ck+97oKI+8sVGUmSZDnaRZGkcfqAuM1DfCMv+vcKO 9k1dD8EclDA73epWyFTTR9IhSXJxj/SRchA5QS8jEmoiiWq1ZprHtSfggo+t+dEhPBkr AKooaqRjDmOxhBX/3Q2PKk/2JuD67SJa1w+iuuabFzKkbua9PuoqBVeTPoyWopn0Gtkw YzVDhi07VNdjAV7Uw6Y8shAE3n56JbWPY21IzM8hztfqHldDbgfaldNWS+UprLNmLKMd im0UN/qDc9+l9YLCAUKtqJ7YGKwbP4Bz+upLO/ynXz8iU7E4fLBAcF9z8GTnssCwyLH5 wf5A== 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:to :from:date; bh=+ZU/5kVJ5FO7n6nyRVVn2I4iUzTiQxwZmZ4OGDDIgrs=; b=Uznpba6t/kAX0Z3GZKLS8Z/Dwgajab7BW8r1o72PhbdngAqffI+3v1xeLDb+ImlyUT sU9eN8TSQR0iDAMUrVXa7pByqYSIyHuYzw/NUoeW1pgikHQOe8Mvf84fLV8EYy8gV5ew oWMrh5K26feYk8p94o7HiQaEifK92kb3x182BMGgtu71f53OrrF4On9YJs3UbVVCdGBN wUTkBsFR6DmFlP2O563JFFaErWWIsILnFXuV8rSxjAEzjRMIrItkD7afOanKZPZY9flF wVaj/nGUnbRZqzoNenawa/5WX5uDClkRVeXkir+jX29nB+zg2ag4twi8dsYutBfF0PpG h8nw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e65si11055360pgc.595.2019.09.02.03.12.52; Mon, 02 Sep 2019 03:13:07 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730659AbfIBInH (ORCPT + 99 others); Mon, 2 Sep 2019 04:43:07 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:39534 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729714AbfIBInG (ORCPT ); Mon, 2 Sep 2019 04:43:06 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id ACB57809D3; Mon, 2 Sep 2019 10:42:50 +0200 (CEST) Date: Mon, 2 Sep 2019 10:43:03 +0200 From: Pavel Machek To: dsterba@suse.cz, Joe Perches , Gao Xiang , Christoph Hellwig , Alexander Viro , Greg Kroah-Hartman , Andrew Morton , Stephen Rothwell , Theodore Ts'o , Pavel Machek , Amir Goldstein , "Darrick J . Wong" , Dave Chinner , Jaegeuk Kim , Jan Kara , Linus Torvalds , linux-fsdevel@vger.kernel.org, devel@driverdev.osuosl.org, LKML , linux-erofs@lists.ozlabs.org, Chao Yu , Miao Xie , Li Guifu , Fang Wei Subject: Re: [PATCH v6 01/24] erofs: add on-disk layout Message-ID: <20190902084303.GC19557@amd> References: <20190802125347.166018-1-gaoxiang25@huawei.com> <20190802125347.166018-2-gaoxiang25@huawei.com> <20190829095954.GB20598@infradead.org> <20190829103252.GA64893@architecture4> <67d6efbbc9ac6db23215660cb970b7ef29dc0c1d.camel@perches.com> <20190830120714.GN2752@twin.jikos.cz> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="lMM8JwqTlfDpEaS6" Content-Disposition: inline In-Reply-To: <20190830120714.GN2752@twin.jikos.cz> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --lMM8JwqTlfDpEaS6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > > > Rather than they didn't run "gdb" or "pahole" and change it by mistak= e. > >=20 > > I think Christoph is not right here. > >=20 > > Using external tools for validation is extra work > > when necessary for understanding the code. >=20 > The advantage of using the external tools that the information about > offsets is provably correct ... No. gdb tells you what the actual offsets _are_. > > The expected offset is somewhat valuable, but > > perhaps the form is a bit off given the visual > > run-in to the field types. > >=20 > > The extra work with this form is manipulating all > > the offsets whenever a structure change occurs. >=20 > ... while this is error prone. While the comment tells you what they _should be_. Pavel --=20 DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany --lMM8JwqTlfDpEaS6 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAl1s1hcACgkQMOfwapXb+vLwegCgmC1y9HxKZu/YFm0T4U+rH5ko oJcAni3phOqqriczOS1slpVzLy+HY7Nv =pnr4 -----END PGP SIGNATURE----- --lMM8JwqTlfDpEaS6--