Date: Sat, 15 Jun 2019 00:44:50 -0500 From: Doug Moore <unkadoug@gmail.com> To: Oliver Pinter <oliver.pinter@hardenedbsd.org> Cc: "src-committers@freebsd.org" <src-committers@freebsd.org>, "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>, "svn-src-head@freebsd.org" <svn-src-head@freebsd.org> Subject: Re: svn commit: r349046 - head/sys/vm Message-ID: <bd4a4e85-102e-f0e9-ac16-e5696aefb924@freebsd.org> In-Reply-To: <CAPQ4ffvuGBA4cHMcVkYQy7AHkWiKOOe38APAkS-Sn=-u5fj87w@mail.gmail.com> References: <201906150430.x5F4UDVX031215@repo.freebsd.org> <CAPQ4ffvuGBA4cHMcVkYQy7AHkWiKOOe38APAkS-Sn=-u5fj87w@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
The patch makes it appear that a call to vm_map_simplify_entry has been removed, and that another has been added. They are the same call, just moved from after a comment to before it. Doug Moore On 6/15/19 12:30 AM, Oliver Pinter wrote: > > > On Saturday, June 15, 2019, Doug Moore <dougm@freebsd.org > <mailto:dougm@freebsd.org>> wrote: > > Author: dougm > Date: Sat Jun 15 04:30:13 2019 > New Revision: 349046 > URL: https://svnweb.freebsd.org/changeset/base/349046 > <https://svnweb.freebsd.org/changeset/base/349046> > > Log: > Critical comments were lost in r349203. This patch seeks to restore > the lost information in new comments. > > Reported by: alc > Reviewed by: alc > Approved by: kib (mentor) > Differential Revision: https://reviews.freebsd.org/D20632 > <https://reviews.freebsd.org/D20632> > > Modified: > head/sys/vm/vm_map.c > > Modified: head/sys/vm/vm_map.c > ============================================================================== > --- head/sys/vm/vm_map.c Sat Jun 15 01:27:49 2019 > (r349045) > +++ head/sys/vm/vm_map.c Sat Jun 15 04:30:13 2019 > (r349046) > @@ -2186,17 +2186,22 @@ _vm_map_clip_start(vm_map_t map, > vm_map_entry_t entry, > VM_MAP_ASSERT_LOCKED(map); > KASSERT(entry->end > start && entry->start < start, > ("_vm_map_clip_start: invalid clip of entry %p", entry)); > + vm_map_simplify_entry(map, entry); > > > Hi! > > This isn't just comment. > > > > /* > - * Split off the front portion -- note that we must insert > the new > - * entry BEFORE this one, so that this entry has the specified > - * starting address. > + * Create a backing object now, if none exists, so that > more individual > + * objects won't be created after the map entry is split. > */ > - vm_map_simplify_entry(map, entry); > vm_map_entry_charge_object(map, entry); > + > + /* Clone the entry. */ > new_entry = vm_map_entry_create(map); > *new_entry = *entry; > > + /* > + * Split off the front portion. Insert the new entry > BEFORE this one, > + * so that this entry has the specified starting address. > + */ > new_entry->end = start; > entry->offset += (start - entry->start); > entry->start = start; > @@ -2244,14 +2249,20 @@ _vm_map_clip_end(vm_map_t map, > vm_map_entry_t entry, v > KASSERT(entry->start < end && entry->end > end, > ("_vm_map_clip_end: invalid clip of entry %p", entry)); > > - > /* > - * Create a new entry and insert it AFTER the specified entry > + * Create a backing object now, if none exists, so that > more individual > + * objects won't be created after the map entry is split. > */ > vm_map_entry_charge_object(map, entry); > + > + /* Clone the entry. */ > new_entry = vm_map_entry_create(map); > *new_entry = *entry; > > + /* > + * Split off the back portion. Insert the new entry AFTER > this one, > + * so that this entry has the specified ending address. > + */ > new_entry->start = entry->end = end; > new_entry->offset += (end - entry->start); > if (new_entry->cred != NULL) > _______________________________________________ > svn-src-head@freebsd.org <mailto:svn-src-head@freebsd.org> mailing > list > https://lists.freebsd.org/mailman/listinfo/svn-src-head > <https://lists.freebsd.org/mailman/listinfo/svn-src-head> > To unsubscribe, send any mail to > "svn-src-head-unsubscribe@freebsd.org > <mailto:svn-src-head-unsubscribe@freebsd.org>" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bd4a4e85-102e-f0e9-ac16-e5696aefb924>