From: David Chinner <dgc@sgi.com>
To: Harvey Harrison <harvey.harrison@gmail.com>
Cc: Christoph Hellwig <hch@lst.de>,
Andrew Morton <akpm@linux-foundation.org>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH-possible bugfix] xfs: ensure extents are read as be64
Date: Tue, 15 Apr 2008 14:58:03 +1000 [thread overview]
Message-ID: <20080415045803.GE103491721@sgi.com> (raw)
In-Reply-To: <1208230131.11920.59.camel@brick>
On Mon, Apr 14, 2008 at 08:28:51PM -0700, Harvey Harrison wrote:
> The debug code reads the extents in cpu-order rather than BE. Make the
> debug code match.
xfs_validate_extents() is reading in-core extents which have already
been byte-swapped when they were read into memory.
FWIW, when changing anything to do with endian conversion, please
ensure you run:
$ make C=2 CHECKFLAGS="-D__CHECK_ENDIAN__"
over the change. This change would introduce errors because:
typedef struct xfs_bmbt_rec_host {
__uint64_t l0, l1;
} xfs_bmbt_rec_host_t;
is not defined with __beXX types like the disk format version of this
structure which is:
typedef struct xfs_bmbt_rec_64 {
__be64 l0, l1;
} xfs_bmbt_rec_64_t;
Cheers,
Dave.
--
Dave Chinner
Principal Engineer
SGI Australian Software Group
next prev parent reply other threads:[~2008-04-15 4:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-15 3:28 [PATCH-possible bugfix] xfs: ensure extents are read as be64 Harvey Harrison
2008-04-15 4:58 ` David Chinner [this message]
2008-04-15 5:03 ` Harvey Harrison
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080415045803.GE103491721@sgi.com \
--to=dgc@sgi.com \
--cc=akpm@linux-foundation.org \
--cc=harvey.harrison@gmail.com \
--cc=hch@lst.de \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox