Skip to contentSkip to conversation

Fix bz 229873, alternate test: assertion "!ip->i_inode.i_mapping->nrpages" failed

Cluster-devel Steven Whitehouse 1 participant 1 message Mar 7, 2007 GFS2 file system

lore
Share & tools
lore
#0 lore raw

Hi,

The following removes an incorrect assertion from the GFS2 glops code.

Steve.

fs/gfs2/glops.c +0 -1
index 4221110..39c8ae2 100644
@@ -245,7 +245,6 @@ static void inode_go_inval(struct gfs2_glock *gl, int flags)
 
 	if (ip && S_ISREG(ip->i_inode.i_mode)) {
 		truncate_inode_pages(ip->i_inode.i_mapping, 0);
-		gfs2_assert_withdraw(GFS2_SB(&ip->i_inode), !ip->i_inode.i_mapping->nrpages);
 		clear_bit(GIF_PAGED, &ip->i_flags);
 	}
 }