From: Steven Whitehouse <swhiteho@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] [Patch 12/44] fsck.gfs2: get rid of triple negative logic
Date: Fri, 12 Aug 2011 10:26:11 +0100 [thread overview]
Message-ID: <1313141171.2704.29.camel@menhir> (raw)
In-Reply-To: <1053287010.544701.1313096594466.JavaMail.root@zmail06.collab.prod.int.phx2.redhat.com>
Looks good,
Steve.
On Thu, 2011-08-11 at 17:03 -0400, Bob Peterson wrote:
> >From 62d7423184da8e291396cb54269612d501437006 Mon Sep 17 00:00:00 2001
> From: Bob Peterson <rpeterso@redhat.com>
> Date: Mon, 8 Aug 2011 14:44:46 -0500
> Subject: [PATCH 12/44] fsck.gfs2: get rid of triple negative logic
>
> This patch changes the logic of the code from being triple-negative
> to single-negative so it won't twist your brain into knots.
>
> rhbz#675723
> ---
> gfs2/fsck/metawalk.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/gfs2/fsck/metawalk.c b/gfs2/fsck/metawalk.c
> index f2cd938..a4d7d3e 100644
> --- a/gfs2/fsck/metawalk.c
> +++ b/gfs2/fsck/metawalk.c
> @@ -930,7 +930,7 @@ static int delete_block_if_notdup(struct gfs2_inode *ip, uint64_t block,
> uint8_t q;
> struct duptree *d;
>
> - if (!valid_block(ip->i_sbd, block) != 0)
> + if (!valid_block(ip->i_sbd, block))
> return -EFAULT;
>
> q = block_type(block);
prev parent reply other threads:[~2011-08-12 9:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-11 21:03 [Cluster-devel] [Patch 12/44] fsck.gfs2: get rid of triple negative logic Bob Peterson
2011-08-12 9:26 ` Steven Whitehouse [this message]
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=1313141171.2704.29.camel@menhir \
--to=swhiteho@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).