Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1198770
| From | Jerome Marchand <jmarchan@redhat.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCHv9 25/36] mm, thp: remove infrastructure for handling splitting PMDs |
| Date | 2015-08-03 13:50 +0200 |
| Message-ID | <pTmpH-1Yc-9@gated-at.bofh.it> (permalink) |
| References | <pOkeR-3Oq-5@gated-at.bofh.it> <pOkeV-3Oq-91@gated-at.bofh.it> <pSk6C-Yx-23@gated-at.bofh.it> <pTltE-CA-29@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
[Multipart message — attachments visible in raw view] - view raw
On 08/03/2015 12:41 PM, Kirill A. Shutemov wrote: > On Fri, Jul 31, 2015 at 05:01:06PM +0200, Jerome Marchand wrote: >> On 07/20/2015 04:20 PM, Kirill A. Shutemov wrote: >>> @@ -1616,23 +1605,14 @@ int change_huge_pmd(struct vm_area_struct *vma, pmd_t *pmd, >>> * Note that if it returns 1, this routine returns without unlocking page >>> * table locks. So callers must unlock them. >>> */ >> >> The comment above should be updated. > > Like this? Yes. Thanks. > > diff --git a/mm/huge_memory.c b/mm/huge_memory.c > index d32277463932..78a6c7cdf8f7 100644 > --- a/mm/huge_memory.c > +++ b/mm/huge_memory.c > @@ -1627,11 +1627,10 @@ int change_huge_pmd(struct vm_area_struct *vma, pmd_t *pmd, > } > > /* > - * Returns 1 if a given pmd maps a stable (not under splitting) thp. > - * Returns -1 if it maps a thp under splitting. Returns 0 otherwise. > + * Returns true if a given pmd maps a thp, false otherwise. > * > - * Note that if it returns 1, this routine returns without unlocking page > - * table locks. So callers must unlock them. > + * Note that if it returns true, this routine returns without unlocking page > + * table lock. So callers must unlock it. > */ > bool __pmd_trans_huge_lock(pmd_t *pmd, struct vm_area_struct *vma, > spinlock_t **ptl) >
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: [PATCHv9 25/36] mm, thp: remove infrastructure for handling splitting PMDs Jerome Marchand <jmarchan@redhat.com> - 2015-07-31 17:10 +0200
Re: [PATCHv9 25/36] mm, thp: remove infrastructure for handling splitting PMDs "Kirill A. Shutemov" <kirill@shutemov.name> - 2015-08-03 12:50 +0200
Re: [PATCHv9 25/36] mm, thp: remove infrastructure for handling splitting PMDs Jerome Marchand <jmarchan@redhat.com> - 2015-08-03 13:50 +0200
csiph-web