Changeset View
Changeset View
Standalone View
Standalone View
sys/vm/vm_object.c
Show First 20 Lines • Show All 2,587 Lines • ▼ Show 20 Lines | if (vp != NULL) { | ||||
kvo->kvo_backing_obj = (uintptr_t)obj->backing_object; | kvo->kvo_backing_obj = (uintptr_t)obj->backing_object; | ||||
sp = swap_pager_swapped_pages(obj); | sp = swap_pager_swapped_pages(obj); | ||||
kvo->kvo_swapped = sp > UINT32_MAX ? UINT32_MAX : sp; | kvo->kvo_swapped = sp > UINT32_MAX ? UINT32_MAX : sp; | ||||
} | } | ||||
VM_OBJECT_RUNLOCK(obj); | VM_OBJECT_RUNLOCK(obj); | ||||
if (vp != NULL) { | if (vp != NULL) { | ||||
vn_fullpath(vp, &fullpath, &freepath); | vn_fullpath(vp, &fullpath, &freepath); | ||||
vn_lock(vp, LK_SHARED | LK_RETRY); | vn_lock(vp, LK_SHARED | LK_RETRY); | ||||
if (VOP_GETATTR(vp, &va, curthread->td_ucred) == 0) { | if (VOP_GETATTR(vp, 0, &va, curthread->td_ucred) == 0) { | ||||
kvo->kvo_vn_fileid = va.va_fileid; | kvo->kvo_vn_fileid = va.va_fileid; | ||||
kvo->kvo_vn_fsid = va.va_fsid; | kvo->kvo_vn_fsid = va.va_fsid; | ||||
kvo->kvo_vn_fsid_freebsd11 = va.va_fsid; | kvo->kvo_vn_fsid_freebsd11 = va.va_fsid; | ||||
/* truncate */ | /* truncate */ | ||||
} | } | ||||
vput(vp); | vput(vp); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 256 Lines • Show Last 20 Lines |