cluster-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Steven Whitehouse <swhiteho@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] [GFS2 Patch] GFS2: Remove redundant metadata block type check
Date: Tue, 08 May 2012 16:45:50 +0100	[thread overview]
Message-ID: <1336491950.2726.21.camel@menhir> (raw)
In-Reply-To: <a02a1e5d-9a99-4efc-a33e-61f6b1357d61@zmail12.collab.prod.int.phx2.redhat.com>

Hi,

On Fri, 2012-04-27 at 08:40 -0400, Bob Peterson wrote:
> Hi,
> 
> This patch removes a redundant metadata block check. See description below.
> 
> Regards,
> 
Now pushed to the -nmw git tree. Sorry for the delay,

Steve.

> Bob Peterson
> Red Hat File Systems
> 
> Signed-off-by: Bob Peterson <rpeterso@redhat.com> 
> ---
> Author: Bob Peterson <rpeterso@redhat.com>
> Date:   Fri Apr 27 07:33:08 2012 -0500
> 
> GFS2: Remove redundant metadata block type check
>  
> Function gfs2_inode_refresh calls gfs2_meta_inode_buffer, which itself
> calls gfs2_meta_indirect_buffer with height 0. Since this path through
> gfs2_meta_indirect_buffer makes a call to gfs2_metatype_check, the
> call in gfs2_inode_refresh is redundant and just a waste of time.
> This patch removes it.
> 
> diff --git a/fs/gfs2/glops.c b/fs/gfs2/glops.c
> index cd3e6fb..4bdcf37 100644
> --- a/fs/gfs2/glops.c
> +++ b/fs/gfs2/glops.c
> @@ -378,11 +378,6 @@ int gfs2_inode_refresh(struct gfs2_inode *ip)
>  	if (error)
>  		return error;
>  
> -	if (gfs2_metatype_check(GFS2_SB(&ip->i_inode), dibh, GFS2_METATYPE_DI)) {
> -		brelse(dibh);
> -		return -EIO;
> -	}
> -
>  	error = gfs2_dinode_in(ip, dibh->b_data);
>  	brelse(dibh);
>  	clear_bit(GIF_INVALID, &ip->i_flags);
> 




      reply	other threads:[~2012-05-08 15:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <241b1f6d-b474-4d33-9388-f17e76763f95@zmail12.collab.prod.int.phx2.redhat.com>
2012-04-27 12:40 ` [Cluster-devel] [GFS2 Patch] GFS2: Remove redundant metadata block type check Bob Peterson
2012-05-08 15:45   ` 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=1336491950.2726.21.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).