All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bob Peterson <rpeterso@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] [PATCH 1/3] gfs2: Add a next-resource-group pointer	to resource groups
Date: Thu, 7 Dec 2017 08:14:50 -0500 (EST)	[thread overview]
Message-ID: <237145216.39445857.1512652490587.JavaMail.zimbra@redhat.com> (raw)
In-Reply-To: <20171207115214.3726-2-anprice@redhat.com>

Hi,

----- Original Message -----
| Add a new rg_skip field to struct gfs2_rgrp, replacing __pad. The
| -	str->__pad = cpu_to_be32(0);
| +	if (next != NULL && next->rd_addr > rgd->rd_addr)
| +		str->rg_skip = cpu_to_be32(next->rd_addr - rgd->rd_addr);

Without having looked at the original:

Shouldn't we still initialize it to 0 or put in an else clause?
I'm concerned that we might end up with an uninitialized random value
at the last rgrp (which may not be a big concern until gfs2_grow or
fsck time).

Bob Peterson
Red Hat File Systems



  reply	other threads:[~2017-12-07 13:14 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-07 11:52 [Cluster-devel] [PATCH 0/3] gfs2: Add new resource group header fields Andrew Price
2017-12-07 11:52 ` [Cluster-devel] [PATCH 1/3] gfs2: Add a next-resource-group pointer to resource groups Andrew Price
2017-12-07 13:14   ` Bob Peterson [this message]
2017-12-07 14:00     ` Andrew Price
2017-12-07 11:52 ` [Cluster-devel] [PATCH 2/3] gfs2: Add rindex fields to rgrp headers Andrew Price
2017-12-07 13:18   ` Bob Peterson
2017-12-07 14:03     ` Andrew Price
2017-12-07 11:52 ` [Cluster-devel] [PATCH 3/3] gfs2: Add a crc field to resource group headers Andrew Price
2017-12-07 12:02   ` Steven Whitehouse
2017-12-07 12:32     ` Andrew Price
2017-12-07 14:26       ` Andrew Price

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=237145216.39445857.1512652490587.JavaMail.zimbra@redhat.com \
    --to=rpeterso@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.