Changeset View
Changeset View
Standalone View
Standalone View
sys/fs/nullfs/null_vfsops.c
Show First 20 Lines • Show All 191 Lines • ▼ Show 20 Lines | nullfs_mount(struct mount *mp) | ||||
MNT_ILOCK(mp); | MNT_ILOCK(mp); | ||||
if ((xmp->nullm_flags & NULLM_CACHE) != 0) { | if ((xmp->nullm_flags & NULLM_CACHE) != 0) { | ||||
mp->mnt_kern_flag |= lowerrootvp->v_mount->mnt_kern_flag & | mp->mnt_kern_flag |= lowerrootvp->v_mount->mnt_kern_flag & | ||||
(MNTK_SHARED_WRITES | MNTK_LOOKUP_SHARED | | (MNTK_SHARED_WRITES | MNTK_LOOKUP_SHARED | | ||||
MNTK_EXTENDED_SHARED); | MNTK_EXTENDED_SHARED); | ||||
} | } | ||||
mp->mnt_kern_flag |= MNTK_LOOKUP_EXCL_DOTDOT | MNTK_NOMSYNC; | mp->mnt_kern_flag |= MNTK_LOOKUP_EXCL_DOTDOT | MNTK_NOMSYNC; | ||||
mp->mnt_kern_flag |= lowerrootvp->v_mount->mnt_kern_flag & | mp->mnt_kern_flag |= lowerrootvp->v_mount->mnt_kern_flag & | ||||
(MNTK_USES_BCACHE | MNTK_NO_IOPF | MNTK_UNMAPPED_BUFS); | (MNTK_NO_IOPF | MNTK_UNMAPPED_BUFS); | ||||
MNT_IUNLOCK(mp); | MNT_IUNLOCK(mp); | ||||
vfs_getnewfsid(mp); | vfs_getnewfsid(mp); | ||||
if ((xmp->nullm_flags & NULLM_CACHE) != 0) { | if ((xmp->nullm_flags & NULLM_CACHE) != 0) { | ||||
MNT_ILOCK(xmp->nullm_vfs); | MNT_ILOCK(xmp->nullm_vfs); | ||||
TAILQ_INSERT_TAIL(&xmp->nullm_vfs->mnt_uppers, mp, | TAILQ_INSERT_TAIL(&xmp->nullm_vfs->mnt_uppers, mp, | ||||
mnt_upper_link); | mnt_upper_link); | ||||
MNT_IUNLOCK(xmp->nullm_vfs); | MNT_IUNLOCK(xmp->nullm_vfs); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 262 Lines • Show Last 20 Lines |