Changeset View
Changeset View
Standalone View
Standalone View
sys/fs/tmpfs/tmpfs_vfsops.c
Show First 20 Lines • Show All 456 Lines • ▼ Show 20 Lines | tmpfs_mount(struct mount *mp) | ||||
KASSERT(root->tn_id == 2, | KASSERT(root->tn_id == 2, | ||||
("tmpfs root with invalid ino: %ju", (uintmax_t)root->tn_id)); | ("tmpfs root with invalid ino: %ju", (uintmax_t)root->tn_id)); | ||||
tmp->tm_root = root; | tmp->tm_root = root; | ||||
MNT_ILOCK(mp); | MNT_ILOCK(mp); | ||||
mp->mnt_flag |= MNT_LOCAL; | mp->mnt_flag |= MNT_LOCAL; | ||||
mp->mnt_kern_flag |= MNTK_LOOKUP_SHARED | MNTK_EXTENDED_SHARED | | mp->mnt_kern_flag |= MNTK_LOOKUP_SHARED | MNTK_EXTENDED_SHARED | | ||||
MNTK_TEXT_REFS | MNTK_NOMSYNC; | MNTK_TEXT_REFS | MNTK_NOMSYNC; | ||||
if (!nonc) | |||||
mp->mnt_kern_flag |= MNTK_FPLOOKUP; | |||||
MNT_IUNLOCK(mp); | MNT_IUNLOCK(mp); | ||||
mp->mnt_data = tmp; | mp->mnt_data = tmp; | ||||
mp->mnt_stat.f_namemax = MAXNAMLEN; | mp->mnt_stat.f_namemax = MAXNAMLEN; | ||||
vfs_getnewfsid(mp); | vfs_getnewfsid(mp); | ||||
vfs_mountedfrom(mp, "tmpfs"); | vfs_mountedfrom(mp, "tmpfs"); | ||||
return 0; | return 0; | ||||
▲ Show 20 Lines • Show All 209 Lines • Show Last 20 Lines |