Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=5ca... Commit: 5cacd15160d57c57e76b6defdd701460c296b8c9 Parent: d096c1f723a4221aea5f0fb3d1ed69b33200e753 Author: Bob Peterson rpeterso@redhat.com AuthorDate: Mon Aug 8 14:44:46 2011 -0500 Committer: Bob Peterson rpeterso@redhat.com CommitterDate: Fri Jan 20 08:26:26 2012 -0600
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 2db389f..888acec 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);
cluster-commits@lists.fedorahosted.org