0001-Fix-mount_point-access-in-ffs_blkfree-when-using-sof.patch

Anonymous, 10/10/2011 12:43 AM

Download (1.06 KB)

View differences:

sys/vfs/ufs/ffs_alloc.c
1658 1658
void
1659 1659
ffs_blkfree(struct inode *ip, ufs_daddr_t bno, long size) 
1660 1660
{
1661
	struct ufsmount *ump = VFSTOUFS(ITOV(ip)->v_mount);;
1661
	struct mount *mp = ip->i_devvp->v_mount;
1662 1662
	struct ffs_blkfree_trim_params *tp;
1663 1663

  
1664
	if (!(ump->um_mountp->mnt_flag & MNT_TRIM)) {
1664
	if (!(mp->mnt_flag & MNT_TRIM)) {
1665 1665
		ffs_blkfree_cg(ip->i_fs, ip->i_devvp,ip->i_dev,ip->i_number,
1666 1666
		    ip->i_uid, bno, size);
1667 1667
		return;
1668
-