From: Steven Whitehouse Date: Wed, 7 Mar 2007 09:06:48 +0000 (+0000) Subject: [GFS2] Fix bz 229873, alternate test: assertion "!ip->i_inode.i_mapping->nrpages... X-Git-Tag: v2.6.21-rc4~103^2 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3f49bc209b28d2b5f82b78baaa827eb3a4d1891;p=linux-2.6 [GFS2] Fix bz 229873, alternate test: assertion "!ip->i_inode.i_mapping->nrpages" failed The following removes an incorrect assertion from the GFS2 glops code. This fixes Red Hat bz 229873. Thanks to Abhijith Das for testing the patch and confirming the fix. Signed-off-by: Steven Whitehouse Cc: Abhijith Das --- diff --git a/fs/gfs2/glops.c b/fs/gfs2/glops.c index 42211105c3..39c8ae23bd 100644 --- a/fs/gfs2/glops.c +++ b/fs/gfs2/glops.c @@ -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); } }