MFC revision 1.214

date: 2006/01/15 20:14:11;  author: csjp;  state: Exp;  lines: +1 -1
vfs_busy can only return something useful if MNTK_UNMOUNT has been set.
Since we are using vfs_busy() on a freshly allocated mount structure, use
(void) to show that we do not care about the return value.
This commit is contained in:
csjp 2006-01-24 04:20:24 +00:00
parent d45534cd3e
commit 8c659df4e5

View File

@ -416,7 +416,7 @@ vfs_mount_alloc(struct vnode *vp, struct vfsconf *vfsp,
mp->mnt_nvnodelistsize = 0;
mtx_init(&mp->mnt_mtx, "struct mount mtx", NULL, MTX_DEF);
lockinit(&mp->mnt_lock, PVFS, "vfslock", 0, 0);
vfs_busy(mp, LK_NOWAIT, 0, td);
(void) vfs_busy(mp, LK_NOWAIT, 0, td);
mp->mnt_op = vfsp->vfc_vfsops;
mp->mnt_vfc = vfsp;
vfsp->vfc_refcount++;