Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/vfs_vnops.c
Show First 20 Lines • Show All 2,435 Lines • ▼ Show 20 Lines | vn_pages_remove(struct vnode *vp, vm_pindex_t start, vm_pindex_t end) | ||||
if ((object = vp->v_object) == NULL) | if ((object = vp->v_object) == NULL) | ||||
return; | return; | ||||
VM_OBJECT_WLOCK(object); | VM_OBJECT_WLOCK(object); | ||||
vm_object_page_remove(object, start, end, 0); | vm_object_page_remove(object, start, end, 0); | ||||
VM_OBJECT_WUNLOCK(object); | VM_OBJECT_WUNLOCK(object); | ||||
} | } | ||||
void | |||||
vn_pages_remove_valid(struct vnode *vp, vm_pindex_t start, vm_pindex_t end) | |||||
{ | |||||
vm_object_t object; | |||||
if ((object = vp->v_object) == NULL) | |||||
return; | |||||
VM_OBJECT_WLOCK(object); | |||||
vm_object_page_remove(object, start, end, OBJPR_VALIDONLY); | |||||
VM_OBJECT_WUNLOCK(object); | |||||
} | |||||
sef: Can we get some comments? I realize the code has historically been low on them, but we can try… | |||||
int | int | ||||
vn_bmap_seekhole_locked(struct vnode *vp, u_long cmd, off_t *off, | vn_bmap_seekhole_locked(struct vnode *vp, u_long cmd, off_t *off, | ||||
struct ucred *cred) | struct ucred *cred) | ||||
{ | { | ||||
struct vattr va; | struct vattr va; | ||||
daddr_t bn, bnp; | daddr_t bn, bnp; | ||||
uint64_t bsize; | uint64_t bsize; | ||||
off_t noff; | off_t noff; | ||||
▲ Show 20 Lines • Show All 1,257 Lines • Show Last 20 Lines |
Can we get some comments? I realize the code has historically been low on them, but we can try to fix that for new code. :)