summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_subr.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/vfs_subr.c')
-rw-r--r--sys/kern/vfs_subr.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index a1cfdaa..7e56575 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -839,9 +839,10 @@ getnewvnode(tag, mp, vops, vpp)
mac_associate_vnode_singlelabel(mp, vp);
#endif
delmntque(vp);
- if (mp != NULL)
+ if (mp != NULL) {
insmntque(vp, mp);
- vp->v_bsize = mp->mnt_stat.f_iosize;
+ vp->v_bsize = mp->mnt_stat.f_iosize;
+ }
return (0);
}
OpenPOWER on IntegriCloud