Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754784AbdDLRcY (ORCPT ); Wed, 12 Apr 2017 13:32:24 -0400 Received: from bombadil.infradead.org ([65.50.211.133]:35485 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752304AbdDLRcV (ORCPT ); Wed, 12 Apr 2017 13:32:21 -0400 Date: Wed, 12 Apr 2017 10:31:51 -0700 From: Christoph Hellwig To: Hoeun Ryu Cc: Christoph Hellwig , Andrew Morton , Andrey Ryabinin , Andreas Dilger , Vlastimil Babka , Michal Hocko , Chris Wilson , Ingo Molnar , zijun_hu , Matthew Wilcox , Thomas Garnier , "Kirill A. Shutemov" , linux-arch@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm: add VM_STATIC flag to vmalloc and prevent from removing the areas Message-ID: <20170412173151.GA23054@infradead.org> References: <1491973350-26816-1-git-send-email-hoeun.ryu@gmail.com> <20170412060218.GA16170@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.8.0 (2017-02-23) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 789 Lines: 17 On Wed, Apr 12, 2017 at 08:42:08PM +0900, Hoeun Ryu wrote: > > > On Apr 12, 2017, at 3:02 PM, Christoph Hellwig wrote: > > > >> On Wed, Apr 12, 2017 at 02:01:59PM +0900, Hoeun Ryu wrote: > >> vm_area_add_early/vm_area_register_early() are used to reserve vmalloc area > >> during boot process and those virtually mapped areas are never unmapped. > >> So `OR` VM_STATIC flag to the areas in vmalloc_init() when importing > >> existing vmlist entries and prevent those areas from being removed from the > >> rbtree by accident. > > > > How would they be removed "by accident"? > > I don't mean actual use-cases, but I just want to make it robust against like programming errors. Oh, ok. The patch makes sense then, although the changelog could use a little update.