Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp3504480imj; Mon, 11 Feb 2019 23:08:36 -0800 (PST) X-Google-Smtp-Source: AHgI3IaaKJFbn587m1874JTDcq7ZU00WeFHalFso/YBRaNeyLQA/0QcCtWgcZBE+zbLjKo8pcRBS X-Received: by 2002:a17:902:1486:: with SMTP id k6mr2605335pla.49.1549955316831; Mon, 11 Feb 2019 23:08:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549955316; cv=none; d=google.com; s=arc-20160816; b=Bi9s/3V10koPtGbAu3cK0GCafqiHGe4r/d/PtGkU8cwhcJtuNye4Zwm6t6k+EesUjN RvtH8fXqInJFJF58w8B6haWuairERdsr6BZLjVIMsxjHu89h5wpLbvNdqp9zSWgpVzQ5 c/uiEiBuCTg3dMTbw0z08UOFApqhCxK/+TEob74sR9HvDG8Jjd7dT9kTF5Eo+F6hGVKI zMHuRHvOMizXMjU5eQlg++7jPPpG33KWpHieWXamzRRlyGF/7qEe1uZ2/jtPWjX392wp BOALudMtm+xnOwx7ZEAXtWm/xTwLiSkGS1kkCqhlUaeEUJWSlsnlUmX7jkkYPMFBLZZt m0pA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Ku2VCrQiE+4GyFWV3Mm1fZsGmsZAL6FugjgOnoFb5UA=; b=RR175Or9+aT6LTBDIvS50QXuSdJXOs2FWOV3TNtYz5485dhMPzQhnwHtcyEcKcycPM gDDnZW/yQgY6Z1ouHJIIoclex5l1/4T+/D7y0mTSvpaRj4F6Gio8wGNuRd9PGEij8ggG 3XFo622JQI6UD1jYXloU2Jyq8WHvzoAuxlcISt3I2A6Enz9ot6NNlKfoLe9QPjhe2Too QTSBTa2H3DYUfWDst3riWnaQtML+GsaZmwVzy1B50LHMXRSWwhR/dDbPlY8ymyM0yNHM m1/C4qzkr27YzLbDanLcrmeFB90RQ9SDUQTxo0PCqcpPAj0VIJPm6rFFWFx2TMtaOCjL JWbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=iO3WJPBx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l13si6926589pgh.423.2019.02.11.23.08.21; Mon, 11 Feb 2019 23:08:36 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=iO3WJPBx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727230AbfBLHIJ (ORCPT + 99 others); Tue, 12 Feb 2019 02:08:09 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:34528 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725930AbfBLHIJ (ORCPT ); Tue, 12 Feb 2019 02:08:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Ku2VCrQiE+4GyFWV3Mm1fZsGmsZAL6FugjgOnoFb5UA=; b=iO3WJPBxaQWGqY7JarPwU0luA NCA77ivsRivD4EZBskLVyriOi7C8iXt1t22++R2LV7olv4xPVhI1xtaHFMbV92Xgobv22W6ic6KHo 5Eu68XMWKnBr3Spo5Dz8NUVHObnOuKQ2cjIIVF2YWeGwygTVp8dqCIMpVT9xz03yyulS/XSgVdoom PCaC0+HZ3WCiUamA8ZVQOwESE0QYg03e3p1F+45g2bYj+m9BOpvULiJk4q3d+JWt0Dt4ufKzu9df0 IBhn0RXJ3INuUiU0Rc8NQW6GG+Bu3GQczfi7RJdJ9STG97nQ95mSIGTK9itgFEw1jqhoNDK/YXhjh lcrqzlOZw==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1gtSAq-0000xf-11; Tue, 12 Feb 2019 07:08:08 +0000 Date: Mon, 11 Feb 2019 23:08:07 -0800 From: Christoph Hellwig To: Anup Patel Cc: Palmer Dabbelt , Albert Ou , "linux-kernel@vger.kernel.org" , Christoph Hellwig , Atish Patra , Paul Walmsley , "linux-riscv@lists.infradead.org" Subject: Re: [PATCH v2 6/6] RISC-V: Implement keepinitrd kernel parameter Message-ID: <20190212070807.GD26747@infradead.org> References: <20190119132650.9978-1-anup.patel@wdc.com> <20190119132650.9978-7-anup.patel@wdc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190119132650.9978-7-anup.patel@wdc.com> User-Agent: Mutt/1.9.2 (2017-12-15) 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jan 19, 2019 at 01:28:59PM +0000, Anup Patel wrote: > This patch implements keepinitrd kernel parameter. By default, > keepinitrd=1 but users can pass "keepinitrd=0" to free-up > initrd memory at boot-time in free_initrd_mem() function. > > The keepinitrd kernel parameter is already implemented by > unicore32, arm, and arm64 architectures and it is documented > at: Documentation/admin-guide/kernel-parameters.txt But why do we need it? Is there any good reason every not to free the initrd / initramfs memory when it is not used?