/* 64-bit file support on 64-bit platforms by Jakub Jelinek ( */
static int ext2_release_file(struct inode *inode, struct file *filp)
/* 64-bit file support on 64-bit platforms by Jakub Jelinek ( */
static int ext2_release_file(struct inode *inode, struct file *filp)
{
	if (filp->f_mode & FMODE_WRITE) {
		mutex_lock(&EXT2_I(inode)->truncate_mutex);
		ext2_discard_reservation(inode);
		mutex_unlock(&EXT2_I(inode)->truncate_mutex);
	}
	return 0;
}