 truncate_inode_pages(&inode->i_data, 0); 
void reiserfs_delete_inode(struct inode *inode){	/* We need blocks for transaction + (user+group) quota update (possibly delete) */	int jbegin_count =	    JOURNAL_PER_BALANCE_CNT * 2 +	    2 * REISERFS_QUOTA_INIT_BLOCKS(inode->i_sb);	struct reiserfs_transaction_handle th;	reiserfs_write_lock(inode->i_sb);	/* The = 0 happens when we abort creating a new inode for some reason like lack of space.. */	if (!(inode->i_state & I_NEW) && INODE_PKEY(inode)->k_objectid != 0) {	/* also handles bad_inode case */		down(&inode->i_sem);		reiserfs_delete_xattrs(inode);		if (journal_begin(&th, inode->i_sb, jbegin_count)) {			up(&inode->i_sem);			goto out;		}		reiserfs_update_inode_transaction(inode);		if (reiserfs_delete_object(&th, inode)) {			up(&inode->i_sem);			goto out;		}		/* Do quota update inside a transaction for journaled quotas. We must do that		 * after delete_object so that quota updates go into the same transaction as		 * stat data deletion */		DQUOT_FREE_INODE(inode);		if (journal_end(&th, inode->i_sb, jbegin_count)) {			up(&inode->i_sem);			goto out;		}		up(&inode->i_sem);		/* all items of file are deleted, so we can remove "save" link */		remove_save_link(inode, 0 /* not truncate */ );	/* we can't do anything								 * about an error here */	} else {		/* no object items are in the tree */		;	}      out:	clear_inode(inode);	/* note this must go after the journal_end to prevent deadlock */	inode->i_blocks = 0;	reiserfs_write_unlock(inode->i_sb);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/fef266580e5cf897a1b63528fc6b1185e2d6bb87/inode.c/buggy/fs/reiserfs/inode.c