From: Carlos Maiolino <cmaiolino@redhat.com>
To: Eric Sandeen <sandeen@redhat.com>
Cc: linux-xfs <linux-xfs@vger.kernel.org>, John Jore <john@jore.no>
Subject: Re: [PATCH] xfs_repair: fix bad next_unlinked field
Date: Tue, 11 Feb 2020 10:08:36 +0100 [thread overview]
Message-ID: <20200211090836.cims7r4jvrds2e7w@andromeda> (raw)
In-Reply-To: <f5b8a2a9-e691-3bf5-c2c7-f4986a933454@redhat.com>
> + unlinked_ino = be32_to_cpu(dino->di_next_unlinked);
> + if (!xfs_verify_agino_or_null(mp, agno, unlinked_ino)) {
> + retval = 1;
> + if (!uncertain)
> + do_warn(_("bad next_unlinked 0x%x on inode %" PRIu64 "%c"),
> + (__s32)dino->di_next_unlinked, lino,
^^^^
shouldn't we be using be32_to_cpu()
here, instead of a direct casting to
__s32?
Cheers.
--
Carlos
next prev parent reply other threads:[~2020-02-11 9:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-10 15:42 [PATCH] xfs_repair: fix bad next_unlinked field Eric Sandeen
2020-02-10 15:54 ` Darrick J. Wong
2020-02-11 9:08 ` Carlos Maiolino [this message]
2020-02-11 14:34 ` Eric Sandeen
2020-02-11 10:11 ` John Jore
2020-02-11 14:31 ` Eric Sandeen
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=20200211090836.cims7r4jvrds2e7w@andromeda \
--to=cmaiolino@redhat.com \
--cc=john@jore.no \
--cc=linux-xfs@vger.kernel.org \
--cc=sandeen@redhat.com \
/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;
as well as URLs for NNTP newsgroup(s).