From: Steven Whitehouse <swhiteho@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] [GFS2 PATCH] GFS2: Fold quota data into the reservations struct
Date: Fri, 13 Apr 2012 11:17:13 +0100 [thread overview]
Message-ID: <1334312233.2746.8.camel@menhir> (raw)
In-Reply-To: <37c6c80d-4c7e-4def-8e62-78b67dd259aa@zmail12.collab.prod.int.phx2.redhat.com>
Hi,
On Thu, 2012-04-12 at 12:22 -0400, Bob Peterson wrote:
> Hi,
>
> Several patches ago, we split the qadata structure from the reservations
> structure. Now that the previous patch lengthened the lifespan of that
> structure, we can safely fold the qadata structure back into it again.
> That saves GFS2 the work and time to allocate and deallocate the qadata
> structure, since we know quota work is normally only needed when
> allocations are done.
>
> Regards,
>
> Bob Peterson
> Red Hat GFS
>
> Signed-off-by: Bob Peterson <rpeterso@redhat.com>
> --
> Author: Bob Peterson <rpeterso@redhat.com>
> Date: Thu Apr 12 12:11:25 2012 -0500
>
> GFS2: Fold quota data into the reservations struct
>
> This patch moves the ancillary quota data structures into the
> block reservations structure. This saves GFS2 a lot of time and
> effort in allocating and deallocating the qadata structure.
[snip]
> diff --git a/fs/gfs2/rgrp.c b/fs/gfs2/rgrp.c
> index af590de..2009c98 100644
> --- a/fs/gfs2/rgrp.c
> +++ b/fs/gfs2/rgrp.c
> @@ -1010,25 +1010,6 @@ out:
> }
>
> /**
> - * gfs2_qadata_get - get the struct gfs2_qadata structure for an inode
> - * @ip: the incore GFS2 inode structure
> - *
> - * Returns: the struct gfs2_qadata
> - */
> -
> -struct gfs2_qadata *gfs2_qadata_get(struct gfs2_inode *ip)
> -{
> - struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode);
> - int error;
> - BUG_ON(ip->i_qadata != NULL);
> - ip->i_qadata = kzalloc(sizeof(struct gfs2_qadata), GFP_NOFS);
> - error = gfs2_rindex_update(sdp);
> - if (error)
> - fs_warn(sdp, "rindex update returns %d\n", error);
> - return ip->i_qadata;
> -}
> -
> -/**
Does it matter that we will lose the call to gfs2_rindex_update here?
Otherwise it looks good, but I can't apply until the previous patch is
ready,
Steve.
prev parent reply other threads:[~2012-04-13 10:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <e6331abc-7dfe-4ab1-a141-d7d0f809e37e@zmail12.collab.prod.int.phx2.redhat.com>
2012-04-12 16:22 ` [Cluster-devel] [GFS2 PATCH] GFS2: Fold quota data into the reservations struct Bob Peterson
2012-04-13 10:17 ` 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=1334312233.2746.8.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).