Skip to content

Commit

Permalink
GFS2: Remove redundant metadata block type check
Browse files Browse the repository at this point in the history
This patch removes a redundant metadata block check. See description below.

Signed-off-by: Bob Peterson <[email protected]>
Signed-off-by: Steven Whitehouse <[email protected]>
  • Loading branch information
AstralBob authored and swhiteho committed May 8, 2012
1 parent f9425ad commit 6de1e2f
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions fs/gfs2/glops.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6de1e2f

Please sign in to comment.