diff options
| author | Alan Cox <alc@FreeBSD.org> | 2011-02-05 21:21:27 +0000 |
|---|---|---|
| committer | Alan Cox <alc@FreeBSD.org> | 2011-02-05 21:21:27 +0000 |
| commit | 17f3095d1a2ebf8f3eaf76fd51fc6235e56d2cfb (patch) | |
| tree | 17ca053f5237cdf00df048613ae24ad00ba77d0e /sys/security/mac | |
| parent | a4ae38f1170b2b66dd917facf4a86cdd45a9a74b (diff) | |
Notes
Diffstat (limited to 'sys/security/mac')
| -rw-r--r-- | sys/security/mac/mac_process.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/security/mac/mac_process.c b/sys/security/mac/mac_process.c index 5b692dd95825..214e748ba34f 100644 --- a/sys/security/mac/mac_process.c +++ b/sys/security/mac/mac_process.c @@ -338,11 +338,8 @@ mac_proc_vm_revoke_recurse(struct thread *td, struct ucred *cred, (void) vn_start_write(vp, &mp, V_WAIT); vn_lock(vp, LK_EXCLUSIVE | LK_RETRY); VM_OBJECT_LOCK(object); - vm_object_page_clean(object, - OFF_TO_IDX(offset), - OFF_TO_IDX(offset + vme->end - vme->start + - PAGE_MASK), - OBJPC_SYNC); + vm_object_page_clean(object, offset, offset + + vme->end - vme->start, OBJPC_SYNC); VM_OBJECT_UNLOCK(object); VOP_UNLOCK(vp, 0); vn_finished_write(mp); |
