This patch removes a redundant metadata block check. See description below.
Regards,
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;