From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932297AbcE3HCk (ORCPT ); Mon, 30 May 2016 03:02:40 -0400 Received: from out4133-66.mail.aliyun.com ([42.120.133.66]:48771 "EHLO out4133-66.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752690AbcE3HCj (ORCPT ); Mon, 30 May 2016 03:02:39 -0400 X-Greylist: delayed 316 seconds by postgrey-1.27 at vger.kernel.org; Mon, 30 May 2016 03:02:37 EDT X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R571e4;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e02c03288;MF=hillf.zj@alibaba-inc.com;NM=1;PH=DS;RN=3;SR=0;TI=SMTPD_----4ruE8gF_1464591419; Reply-To: "Hillf Danton" From: "Hillf Danton" To: "'Aneesh Kumar K.V'" Cc: "linux-kernel" , References: <001401d1ba3f$897a88b0$9c6f9a10$@alibaba-inc.com> In-Reply-To: <001401d1ba3f$897a88b0$9c6f9a10$@alibaba-inc.com> Subject: Re: [RFC PATCH 1/4] mm/hugetlb: Simplify hugetlb unmap Date: Mon, 30 May 2016 14:56:59 +0800 Message-ID: <001501d1ba40$76c350c0$6449f240$@alibaba-inc.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQC/X9OdNVaN0bQTUDT6jmcsvwJtDaH1v3Ng Content-Language: zh-cn Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > @@ -3157,19 +3156,22 @@ void __unmap_hugepage_range(struct mmu_gather *tlb, struct vm_area_struct *vma, > tlb_start_vma(tlb, vma); > mmu_notifier_invalidate_range_start(mm, mmun_start, mmun_end); > address = start; > -again: > for (; address < end; address += sz) { With the again label cut off, you can also make a change in the for line. thanks Hillf > ptep = huge_pte_offset(mm, address); > if (!ptep) > continue;