From: Bob Peterson <rpeterso@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] [PATCH 2/3] gfs2: Add rindex fields to rgrp headers
Date: Thu, 7 Dec 2017 08:18:39 -0500 (EST) [thread overview]
Message-ID: <992764209.39446774.1512652719386.JavaMail.zimbra@redhat.com> (raw)
In-Reply-To: <20171207115214.3726-3-anprice@redhat.com>
Hi,
----- Original Message -----
| Add rg_data0, rg_data and rg_bitbytes to struct gfs2_rgrp. The fields
| are identical to their counterparts in struct gfs2_rindex and are
| intended to reduce the use of the rindex. For now the fields are only
| written back as the in-memory equivalents in struct gfs2_rgrpd are set
| using values from the rindex. However, they are needed at this point so
| that userspace can make use of them, allowing a migration away from the
| rindex over time.
|
| The new fields take up previously reserved space which was explicitly
| zeroed on write so, in clusters with mixed kernels, these fields could
| get zeroed after being set and this should not be treated as an error.
|
| Signed-off-by: Andrew Price <anprice@redhat.com>
(snip)
| @@ -1053,6 +1054,10 @@ static void gfs2_rgrp_out(struct gfs2_rgrpd *rgd, void
| *buf)
| if (next != NULL && next->rd_addr > rgd->rd_addr)
| str->rg_skip = cpu_to_be32(next->rd_addr - rgd->rd_addr);
| str->rg_igeneration = cpu_to_be64(rgd->rd_igeneration);
| + str->rg_data0 = cpu_to_be64(rgd->rd_data0);
| + str->rg_data = cpu_to_be64(rgd->rd_data);
| + str->rg_bitbytes = cpu_to_be64(rgd->rd_bitbytes);
These last two should be cpu_to_be32() not 64()
Regards,
Bob Peterson
Red Hat File Systems
next prev parent reply other threads:[~2017-12-07 13:18 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
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 [this message]
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=992764209.39446774.1512652719386.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.