Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp3713292pxy; Tue, 4 May 2021 08:19:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyiGPx6AQ4Gv0rhP19yw3MmW4SiX+/ai/GTH33sHOxqWPFNbAmSsu9oq5tlAo0tVMAgoTXN X-Received: by 2002:a17:90b:391:: with SMTP id ga17mr5762676pjb.17.1620141564546; Tue, 04 May 2021 08:19:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620141564; cv=none; d=google.com; s=arc-20160816; b=OPEbJ6sNUYnIYxJkhXejnmMvRmF9EDb9ccrBrmiS7/ni8RS88yeHlR5xHIduIkvUWn Z3YLgiar0dYB7cF1g5LVe5d9KoE9mEQJjKIblvNsloWEmqutMPx9l3c0llBaM1iBim3r 5dgyyrsuqigQ7qUY7np/JSHWN3qM5ljUBkLSIbDYvLbPZTWWzk4BDjsBWf+8bFbZdwzq QVhXJzoAdbTEkJagWVUCEDTuG/7xzT5mrq+nJdbMRTukRsba4JRRD5SbO2x6Q1fUpMuk bClVE8CMie2mEJXN8usgTiL8xHLx36pjvfQUdmwU7jzXkhhzM+qQkjnst4tV3XQ0qYOT g3cQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=oVMtpZ5lxrSrSa5eVxB0LKpYWorsgiNp8lKMJIa/VAE=; b=zvjRYdGMyR2ojCH3l2xsKOpOQnsFOQ3173FMCmNEWeGOumrm2IEvZbsK6BqpsNugsu RX9p7nWunD2wzsjpMY7/UQ+m2eJGDjkCAnQZPLU0Oitec9yxBQ6OP3qCtLj6uTy72xar 25cvnmCXC0g3E2rfKxbzBWQjEVyYU8uMACYuyciNfDVyFf1UMOkqQ7bPH2gJYDhfY7Ny VOyBc+BQk8DUrwQTjrA874W3yXiLhzk8SUqzqxqVecD5UaMsLxEm8FHAEUM64WadbZOW ZFONyNrLEe1DU2SAZrY6P2PF8u58Ckke+F7Iyd8aiuCTDF/GnYm/wQz7YqMixq/H1VJL rmxQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p6si3598094plq.109.2021.05.04.08.19.03; Tue, 04 May 2021 08:19:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230334AbhEDPTy (ORCPT + 99 others); Tue, 4 May 2021 11:19:54 -0400 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:56226 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230254AbhEDPTx (ORCPT ); Tue, 4 May 2021 11:19:53 -0400 Received: from cwcc.thunk.org (pool-72-74-133-215.bstnma.fios.verizon.net [72.74.133.215]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 144FIqrY015598 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 4 May 2021 11:18:52 -0400 Received: by cwcc.thunk.org (Postfix, from userid 15806) id F04D415C3C43; Tue, 4 May 2021 11:18:51 -0400 (EDT) Date: Tue, 4 May 2021 11:18:51 -0400 From: "Theodore Ts'o" To: Andreas Dilger Cc: Ext4 Developers List , harshads@google.com Subject: Re: [PATCH] e2fsck: fix portability problems caused by unaligned accesses Message-ID: References: <20210504031024.3888676-1-tytso@mit.edu> <8E9C71E8-FE5F-4CB8-BA62-8D8895DCA92A@dilger.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8E9C71E8-FE5F-4CB8-BA62-8D8895DCA92A@dilger.ca> Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Tue, May 04, 2021 at 12:29:21AM -0600, Andreas Dilger wrote: > > @@ -344,10 +361,10 @@ static int ext4_fc_replay_scan(journal_t *j, struct buffer_head *bh, > > offsetof(struct ext4_fc_tail, > > fc_crc)); > > jbd_debug(1, "tail tid %d, expected %d\n", > > - le32_to_cpu(tail->fc_tid), > > + get_le32(&tail->fc_tid), > > expected_tid); > > - if (le32_to_cpu(tail->fc_tid) == expected_tid && > > - le32_to_cpu(tail->fc_crc) == state->fc_crc) { > > + if (get_le32(&tail->fc_tid) == expected_tid && > > + get_le32(&tail->fc_crc) == state->fc_crc) { > > (style) better to align continued line after '(' on previous line? That way > it can be distinguished from the next (body) line more easily Thanks, I fixed up the whitespace style issues (which were in the original code, but while we're modifying these lines, might as well fix them up). - Ted