Author: attilio Date: Tue Jul 10 00:23:25 2012 New Revision: 238320 URL: http://svn.freebsd.org/changeset/base/238320
Log: Remove a check on MNTK_UPDATE that is not really necessary as it is handled in a code snippet above. Modified: head/sys/fs/ntfs/ntfs_vfsops.c Modified: head/sys/fs/ntfs/ntfs_vfsops.c ============================================================================== --- head/sys/fs/ntfs/ntfs_vfsops.c Tue Jul 10 00:14:42 2012 (r238319) +++ head/sys/fs/ntfs/ntfs_vfsops.c Tue Jul 10 00:23:25 2012 (r238320) @@ -212,45 +212,22 @@ ntfs_mount(struct mount *mp) return (err); } - if (mp->mnt_flag & MNT_UPDATE) { -#if 0 - /* - ******************** - * UPDATE - ******************** - */ - - if (devvp != ntmp->um_devvp) - err = EINVAL; /* needs translation */ - vput(devvp); - if (err) - return (err); -#endif - } else { - /* - ******************** - * NEW MOUNT - ******************** - */ - - /* - * Since this is a new mount, we want the names for - * the device and the mount point copied in. If an - * error occurs, the mountpoint is discarded by the - * upper level code. Note that vfs_mount() handles - * copying the mountpoint f_mntonname for us, so we - * don't have to do it here unless we want to set it - * to something other than "path" for some rason. - */ - err = ntfs_mountfs(devvp, mp, td); - if (err == 0) { + /* + * Since this is a new mount, we want the names for the device and + * the mount point copied in. If an error occurs, the mountpoint is + * discarded by the upper level code. Note that vfs_mount() handles + * copying the mountpoint f_mntonname for us, so we don't have to do + * it here unless we want to set it to something other than "path" + * for some rason. + */ - /* Save "mounted from" info for mount point. */ - vfs_mountedfrom(mp, from); - } - } - if (err) + err = ntfs_mountfs(devvp, mp, td); + if (err == 0) { + + /* Save "mounted from" info for mount point. */ + vfs_mountedfrom(mp, from); + } else vrele(devvp); return (err); } _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"