diff options
author | Bob Peterson <rpeterso@redhat.com> | 2012-04-27 08:40:16 -0400 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2012-05-08 11:18:55 -0400 |
commit | 6de1e2f34a7864883da7b4a68756836d80952fb9 (patch) | |
tree | d9fffa8873b0921c31b66d5f3fe4291fd4161c13 /fs/gfs2/glops.c | |
parent | f9425ad4e5c8f8f9f6297d0358dc44ca058ffe47 (diff) |
GFS2: Remove redundant metadata block type check
This patch removes a redundant metadata block check. See description below.
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/glops.c')
-rw-r--r-- | fs/gfs2/glops.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/gfs2/glops.c b/fs/gfs2/glops.c index cd3e6fbf111b..4bdcf3784187 100644 --- a/fs/gfs2/glops.c +++ b/fs/gfs2/glops.c | |||
@@ -378,11 +378,6 @@ int gfs2_inode_refresh(struct gfs2_inode *ip) | |||
378 | if (error) | 378 | if (error) |
379 | return error; | 379 | return error; |
380 | 380 | ||
381 | if (gfs2_metatype_check(GFS2_SB(&ip->i_inode), dibh, GFS2_METATYPE_DI)) { | ||
382 | brelse(dibh); | ||
383 | return -EIO; | ||
384 | } | ||
385 | |||
386 | error = gfs2_dinode_in(ip, dibh->b_data); | 381 | error = gfs2_dinode_in(ip, dibh->b_data); |
387 | brelse(dibh); | 382 | brelse(dibh); |
388 | clear_bit(GIF_INVALID, &ip->i_flags); | 383 | clear_bit(GIF_INVALID, &ip->i_flags); |