Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1276056

Re: [PATCH -mm v2] mm: add page_check_address_transhuge helper

From Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH -mm v2] mm: add page_check_address_transhuge helper
Date 2015-11-24 05:30 +0100
Message-ID <qydoS-3c2-13@gated-at.bofh.it> (permalink)
References <qwQkG-5nF-25@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hello,

On (11/20/15 12:31), Vladimir Davydov wrote:
[..]
> -	if (ptep_clear_flush_young_notify(vma, address, pte)) {
> -		/*
> -		 * Don't treat a reference through a sequentially read
> -		 * mapping as such.  If the page has been used in
> -		 * another mapping, we will catch it; if this other
> -		 * mapping is already gone, the unmap path will have
> -		 * set PG_referenced or activated the page.
> -		 */
> -		if (likely(!(vma->vm_flags & VM_SEQ_READ)))
> +	if (pte) {
> +		if (ptep_clear_flush_young_notify(vma, address, pte)) {
> +			/*
> +			 * Don't treat a reference through a sequentially read
> +			 * mapping as such.  If the page has been used in
> +			 * another mapping, we will catch it; if this other
> +			 * mapping is already gone, the unmap path will have
> +			 * set PG_referenced or activated the page.
> +			 */
> +			if (likely(!(vma->vm_flags & VM_SEQ_READ)))
> +				referenced++;
> +		}
> +		pte_unmap(pte);
> +	} else {
> +		if (pmdp_clear_flush_young_notify(vma, address, pmd))
>  			referenced++;
>  	}

# CONFIG_TRANSPARENT_HUGEPAGE is not set

x86_64, 4.4.0-rc2-mm1


mm/built-in.o: In function `page_referenced_one':
rmap.c:(.text+0x32070): undefined reference to `pmdp_clear_flush_young'


	-ss
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH -mm v2] mm: add page_check_address_transhuge helper Vladimir Davydov <vdavydov@virtuozzo.com> - 2015-11-20 10:40 +0100
  Re: [PATCH -mm v2] mm: add page_check_address_transhuge helper Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com> - 2015-11-24 05:30 +0100
    Re: [PATCH -mm v2] mm: add page_check_address_transhuge helper "Kirill A. Shutemov" <kirill@shutemov.name> - 2015-11-24 10:10 +0100
      Re: [PATCH -mm v2] mm: add page_check_address_transhuge helper Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com> - 2015-11-24 10:30 +0100
      Re: [PATCH -mm v2] mm: add page_check_address_transhuge helper Vladimir Davydov <vdavydov@virtuozzo.com> - 2015-11-24 10:40 +0100
        Re: [PATCH -mm v2] mm: add page_check_address_transhuge helper Vladimir Davydov <vdavydov@virtuozzo.com> - 2015-11-24 10:50 +0100
          Re: [PATCH -mm v2] mm: add page_check_address_transhuge helper Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com> - 2015-11-24 11:10 +0100
        Re: [PATCH -mm v2] mm: add page_check_address_transhuge helper "Kirill A. Shutemov" <kirill@shutemov.name> - 2015-11-24 11:00 +0100
        Re: [PATCH -mm v2] mm: add page_check_address_transhuge helper Johannes Weiner <hannes@cmpxchg.org> - 2015-11-24 19:20 +0100

csiph-web