Changeset View
Changeset View
Standalone View
Standalone View
sys/fs/nullfs/null_subr.c
Show First 20 Lines • Show All 253 Lines • ▼ Show 20 Lines | null_nodeget(mp, lowervp, vpp) | ||||
vp->v_vnlock = lowervp->v_vnlock; | vp->v_vnlock = lowervp->v_vnlock; | ||||
error = insmntque1(vp, mp, null_insmntque_dtr, xp); | error = insmntque1(vp, mp, null_insmntque_dtr, xp); | ||||
if (error != 0) | if (error != 0) | ||||
return (error); | return (error); | ||||
if (lowervp == MOUNTTONULLMOUNT(mp)->nullm_lowerrootvp) | if (lowervp == MOUNTTONULLMOUNT(mp)->nullm_lowerrootvp) | ||||
vp->v_vflag |= VV_ROOT; | vp->v_vflag |= VV_ROOT; | ||||
/* | /* | ||||
* We might miss the case where lower vnode sets VIRF_PGREAD | |||||
* some time after construction, which is typical case. | |||||
* null_open rechecks. | |||||
*/ | |||||
markj: Looks like there is some extra white space at the beginning of each line. | |||||
Done Inline ActionsThere is tab and space before each '*', as usual for multiline comments. Unless I miss something, this is normal indent. kib: There is tab and space before each '*', as usual for multiline comments. Unless I miss… | |||||
Done Inline ActionsI meant that there is an extra space after each *. markj: I meant that there is an extra space after each `*`. | |||||
if ((lowervp->v_irflag & VIRF_PGREAD) != 0) { | |||||
MPASS(lowervp->v_object != NULL); | |||||
if ((vp->v_irflag & VIRF_PGREAD) == 0) { | |||||
if (vp->v_object == NULL) | |||||
vp->v_object = lowervp->v_object; | |||||
else | |||||
MPASS(vp->v_object == lowervp->v_object); | |||||
VI_LOCK(vp); | |||||
vp->v_irflag |= VIRF_PGREAD; | |||||
VI_UNLOCK(vp); | |||||
} else { | |||||
MPASS(vp->v_object != NULL); | |||||
} | |||||
} | |||||
/* | |||||
* Atomically insert our new node into the hash or vget existing | * Atomically insert our new node into the hash or vget existing | ||||
* if someone else has beaten us to it. | * if someone else has beaten us to it. | ||||
*/ | */ | ||||
*vpp = null_hashins(mp, xp); | *vpp = null_hashins(mp, xp); | ||||
if (*vpp != NULL) { | if (*vpp != NULL) { | ||||
vrele(lowervp); | vrele(lowervp); | ||||
null_destroy_proto(vp, xp); | null_destroy_proto(vp, xp); | ||||
return (0); | return (0); | ||||
▲ Show 20 Lines • Show All 57 Lines • Show Last 20 Lines |
Looks like there is some extra white space at the beginning of each line.