Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1601115
| From | Vlastimil Babka <vbabka@suse.cz> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2 04/10] mm: make the try_to_munlock void function |
| Date | 2017-03-15 08:40 +0100 |
| Message-ID | <tlbHj-4pe-3@gated-at.bofh.it> (permalink) |
| References | <tl9Fv-2US-3@gated-at.bofh.it> <tl9Fw-2US-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 03/15/2017 06:24 AM, Minchan Kim wrote: > try_to_munlock returns SWAP_MLOCK if the one of VMAs mapped > the page has VM_LOCKED flag. In that time, VM set PG_mlocked to > the page if the page is not pte-mapped THP which cannot be > mlocked, either. > > With that, __munlock_isolated_page can use PageMlocked to check > whether try_to_munlock is successful or not without relying on > try_to_munlock's retval. It helps to make try_to_unmap/try_to_unmap_one > simple with upcoming patches. > > Cc: Vlastimil Babka <vbabka@suse.cz> > Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> > Signed-off-by: Minchan Kim <minchan@kernel.org> Acked-by: Vlastimil Babka <vbabka@suse.cz>
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH v2 04/10] mm: make the try_to_munlock void function Minchan Kim <minchan@kernel.org> - 2017-03-15 06:30 +0100 Re: [PATCH v2 04/10] mm: make the try_to_munlock void function Vlastimil Babka <vbabka@suse.cz> - 2017-03-15 08:40 +0100
csiph-web