From: Bob Peterson <rpeterso@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] GFS2: Add structure to contain rgrp, bitmap, offset tuple
Date: Fri, 3 Aug 2012 10:08:19 -0400 (EDT) [thread overview]
Message-ID: <2034552735.9990427.1344002899511.JavaMail.root@redhat.com> (raw)
In-Reply-To: <1343745837.2733.41.camel@menhir>
----- Original Message -----
|
| This patch introduces a new structure, gfs2_rbm, which is a
| tuple of a resource group, a bitmap within the resource group
| and an offset within that bitmap. This is designed to make
| manipulating these sets of variables easier. There is also a
| new helper function which converts this representation back
| to a disk block address.
|
| In addition, the rbtree nodes which are used for the reservations
| were not being correctly initialised, which is now fixed. Also,
| the tracing was not passing through the inode where it should
| have been. That is mostly fixed aside from one corner case. This
| needs to be revisited since there can also be a NULL rgrp in
| some cases which results in the device being incorrect in the
| trace.
|
| This is intended to be the first step towards cleaning up some
| of the allocation code, and some further bug fixes.
|
| Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
(snip)
| diff --git a/fs/gfs2/rgrp.c b/fs/gfs2/rgrp.c
| index a2b43bb..eaa4188 100644
| --- a/fs/gfs2/rgrp.c
| +++ b/fs/gfs2/rgrp.c
(snip)
| @@ -499,8 +501,8 @@ int gfs2_rs_alloc(struct gfs2_inode *ip)
| static void dump_rs(struct seq_file *seq, struct gfs2_blkreserv *rs)
| {
| gfs2_print_dbg(seq, " r: %llu s:%llu b:%u f:%u\n",
| - rs->rs_rgd->rd_addr, gfs2_rs_startblk(rs), rs->rs_biblk,
| - rs->rs_free);
| + rs->rs_rbm.rgd->rd_addr, gfs2_rbm_to_block(&rs->rs_rbm),
Hm, just fyi: When I copied the patch, I see an extra space (resulting in a
whitespace warning from git) at the end of this last line. On my reply, I don't
see it, so I'm not sure what's going on there.
Regards,
Bob Peterson
Red Hat File Systems
next prev parent reply other threads:[~2012-08-03 14:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-31 14:43 [Cluster-devel] GFS2: Add structure to contain rgrp, bitmap, offset tuple Steven Whitehouse
2012-08-03 14:08 ` Bob Peterson [this message]
2012-08-03 14:10 ` Steven Whitehouse
2012-08-03 15:06 ` 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=2034552735.9990427.1344002899511.JavaMail.root@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.