Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3305656pxj; Tue, 11 May 2021 01:10:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwQnFSeTR3ICDayfg7tuYU1gKlXoo3RFV0iH3RSQ79vhjvhfFoQQWF8DDiZVn32CG5lh2s6 X-Received: by 2002:aa7:c34b:: with SMTP id j11mr35584440edr.188.1620720642748; Tue, 11 May 2021 01:10:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620720642; cv=none; d=google.com; s=arc-20160816; b=I8Y6PwvNFx6nAGXjnAPztnjx1iP/I/gM214a27DCCgtj6HW2oJBE/nL1AgjbFZdu6C txOaq/REQfp3UZjZF4zdnkQPQJZ9MB0xcdewqKk6UFLpjDOvzFzFtJxaNU+DJdCZMoQS Hya7HUDVpUe+3UicCyz96nUeHivvS419uODkScTgtOiyXHsQzBxTsJ9lW04PhKBqZp2t uZo2vLcVBqqfinCOqCMt+p7B5OJL8xEn9dGMEuP4e47g24K/jMPPDo3VgAIxgEYT43nQ I+pf2LcLF/i6BmGaK97U3Sru9UZF2GUAHYDXV/PDBY8fUk5J/yv4gxhCQntvDfs+AMKh gknQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=LP6cDq3Duf1xEV8F2f9P4jbHkHlbdX5NLdR/wTAfQ80=; b=qpDBsbE+AootF8bctS7MwCulkhFbj7U8143djdjaiCqwVu1TwNaBJ8NzQLzM8iTKon oDMFC8ssgjDp8R5lo3bQPocEdAzq4tqmkcccBNexgE7rPGa0iBtWLVm+pjVxjtEy/RPG kDUPpde2pMBzMAyqrcKnl7h5vv9/bn7qUJEL6F1s4BUhhLwJkpeC5SjfbPpHJkhZdyHb KF21MUYeJLBbNY2cx6RkcCxpy1NEJulvS31sXSXdbQvzk/9WPgXbkE22zZUW0Djw/i7K qF7zQ9kCnPPs4lsxZvh5J/8dUVHcHPG+GKpVyWQqrqZSjxHtSCHNJAybACYfQBbEPWIb HciA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gr23si15737497ejb.87.2021.05.11.01.10.17; Tue, 11 May 2021 01:10:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230346AbhEKIIZ (ORCPT + 99 others); Tue, 11 May 2021 04:08:25 -0400 Received: from mx2.suse.de ([195.135.220.15]:55464 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230126AbhEKIIY (ORCPT ); Tue, 11 May 2021 04:08:24 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 9CBD8AD2D; Tue, 11 May 2021 08:07:15 +0000 (UTC) Date: Tue, 11 May 2021 10:07:10 +0200 From: Oscar Salvador To: Muchun Song Cc: Jonathan Corbet , Mike Kravetz , Thomas Gleixner , Ingo Molnar , bp@alien8.de, X86 ML , hpa@zytor.com, dave.hansen@linux.intel.com, luto@kernel.org, Peter Zijlstra , Alexander Viro , Andrew Morton , paulmck@kernel.org, pawan.kumar.gupta@linux.intel.com, Randy Dunlap , oneukum@suse.com, anshuman.khandual@arm.com, jroedel@suse.de, Mina Almasry , David Rientjes , Matthew Wilcox , Michal Hocko , "Song Bao Hua (Barry Song)" , David Hildenbrand , HORIGUCHI =?utf-8?B?TkFPWUEo5aCA5Y+jIOebtOS5nyk=?= , Joao Martins , Xiongchun duan , fam.zheng@bytedance.com, zhengqi.arch@bytedance.com, linux-doc@vger.kernel.org, LKML , Linux Memory Management List , linux-fsdevel Subject: Re: [External] Re: [PATCH v23 6/9] mm: hugetlb: alloc the vmemmap pages associated with each HugeTLB page Message-ID: References: <20210510030027.56044-1-songmuchun@bytedance.com> <20210510030027.56044-7-songmuchun@bytedance.com> <20210510104524.GD22664@linux> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 10, 2021 at 08:19:47PM +0800, Muchun Song wrote: > Not exactly right. free_huge_page() does not clear HPageTemporary > if the page is temporarily allocated when freeing. You are right that > dissolve_free_huge_page() does not clear HPageFreed. Right, I missed that. > Because I think it is the reverse operation of remove_hugetlb_page, > I named it add_hugetlb_page. Do you have any suggestions for > renaming? Ok, if it is the counter part, the name makes sense. I would have appreciated a comment explaining e.g: under which circumtances is being called, etc. but not a blocker, can be done on top. Reviewed-by: Oscar Salvador -- Oscar Salvador SUSE L3