git: 40cbcb996c08 - main - vm_fault_dontneed: Inline value of variable used once in an assertion.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 13 Apr 2022 23:09:13 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=40cbcb996c0827dc5af93744a86c22198cac5f41 commit 40cbcb996c0827dc5af93744a86c22198cac5f41 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-04-13 23:08:19 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-04-13 23:08:19 +0000 vm_fault_dontneed: Inline value of variable used once in an assertion. --- sys/vm/vm_fault.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sys/vm/vm_fault.c b/sys/vm/vm_fault.c index 647d9283be3b..cfdd39de3ac2 100644 --- a/sys/vm/vm_fault.c +++ b/sys/vm/vm_fault.c @@ -1730,14 +1730,13 @@ static void vm_fault_dontneed(const struct faultstate *fs, vm_offset_t vaddr, int ahead) { vm_map_entry_t entry; - vm_object_t first_object, object; + vm_object_t first_object; vm_offset_t end, start; vm_page_t m, m_next; vm_pindex_t pend, pstart; vm_size_t size; - object = fs->object; - VM_OBJECT_ASSERT_UNLOCKED(object); + VM_OBJECT_ASSERT_UNLOCKED(fs->object); first_object = fs->first_object; /* Neither fictitious nor unmanaged pages can be reclaimed. */ if ((first_object->flags & (OBJ_FICTITIOUS | OBJ_UNMANAGED)) == 0) {