Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4172396imm; Mon, 18 Jun 2018 10:16:59 -0700 (PDT) X-Google-Smtp-Source: ADUXVKL2Gkk9mlkLc80wya1AQ/lv18oOWjrDhwZS8APJ1WuMnYXKQQGgkw/k5yxpUHD7+WUmL9Ly X-Received: by 2002:a63:9f1a:: with SMTP id g26-v6mr11487497pge.178.1529342219329; Mon, 18 Jun 2018 10:16:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529342219; cv=none; d=google.com; s=arc-20160816; b=NHIaV5SZRjApJ7Spu/9mAHgKmf8NaIncXg+keiwr/gBipZ/Wk/ssBfyBRlu8H/wZrY dorkhpB0UWZLfr/qv+87FTtUYiXDgPb8ZR3n6OQhDuo3R8JAQgnPvzDLWbFJjsg0y0xI QzYq7nK9ctFmKANlRzayFTIeb2v7B/MiHf6/BrKMvfq0ajiVtW1pHkZ/lS3u1eSs4xCu RZt8mxF8hyAyeRNikSnaIKK812PLd8AwJ+E6c4BRCp40Vkd3YrWJqmyeDlZL0C49tiFe eOHzMCzOijXXkUiOyvWnAg/BjH5SsNYOiRmLjcxmQZJTOMDM8LIvy0IiQ3AeUMvXgEZs u4uQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=+GzKGK88Q7ih6jr8ch0HGQCCsnGq9gxgHzNl/seHBFI=; b=vLwlEOI5CIH7I+86WJKx1Q5Bnx7s6LfEQzghby5EG7TvfmqJ/XnDj12Q0UwmASsiwQ 3ZQRuQ7HbjI7NGsZkA8TDgGIEtiBV8ULQAlToP+T8HFXf9cZ7A8WBgTqKsYsN8OSkCi7 JLiEadStw6Eb6Ine033d+qJLHQwVo902hPtfPTxvbxrgKf5WtnsX/mFGUEnage7HTV1g QpNzXbz0bpizLLUrcq1J+FrThZv3iS89o7vNrAul7TbjKOQlYBDvHTX0E2SeRA6oLcgu ZtP4Vlr3MmExh2khlnhFWC4zwbGmnNhTxVan6jtHgUgvWFVO4001jYjmy0MbPdMpNgHQ x9jw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="sDx2/PGZ"; 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 p76-v6si15320655pfk.275.2018.06.18.10.16.45; Mon, 18 Jun 2018 10:16:59 -0700 (PDT) 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="sDx2/PGZ"; 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 S935341AbeFRRPP (ORCPT + 99 others); Mon, 18 Jun 2018 13:15:15 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:57862 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933501AbeFRRPN (ORCPT ); Mon, 18 Jun 2018 13:15:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To: Subject:Sender:Reply-To: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=+GzKGK88Q7ih6jr8ch0HGQCCsnGq9gxgHzNl/seHBFI=; b=sDx2/PGZdXOJwe9zZeP2nUQcb ApxJCiHh99HHwxEA2/4ePGeNNtg9/bOdd8K4YvNheQj4rJUQVQ9Yf8HoutKEgsY48dmGBCMSEXTxK 23McgauTvUGtZfotdsJH+Xgc1yDsVT60PLUCdq60wxpxn57EhJt/XF8YXADypZwTZO8LoVtPw6DEg 1UzhtrHGCBLcCXoYcuUAaGcblnEidCI7BJlNIiz5yE0EguHFmvYD+0DQ46M9/TT49Ip1Tin5hHWHt eQWQ+kdXKHoPjXuNX8Wphmvza7a/iusK0LYtpgTfXsr7mMyfJml/pndosaAQbS21RNs68D99TACD1 CQysWhtMA==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=midway.dunlab) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fUxkH-0006Qr-81; Mon, 18 Jun 2018 17:15:13 +0000 Subject: Re: [PATCH 05/11] docs/mm: bootmem: add overview documentation To: Mike Rapoport , Jonathan Corbet Cc: Andrew Morton , linux-doc , linux-mm , lkml References: <1529341199-17682-1-git-send-email-rppt@linux.vnet.ibm.com> <1529341199-17682-6-git-send-email-rppt@linux.vnet.ibm.com> From: Randy Dunlap Message-ID: Date: Mon, 18 Jun 2018 10:15:10 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <1529341199-17682-6-git-send-email-rppt@linux.vnet.ibm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 06/18/2018 09:59 AM, Mike Rapoport wrote: > Signed-off-by: Mike Rapoport > --- > mm/bootmem.c | 47 +++++++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 47 insertions(+) > > diff --git a/mm/bootmem.c b/mm/bootmem.c > index 76fc17e..423cb5f 100644 > --- a/mm/bootmem.c > +++ b/mm/bootmem.c > @@ -21,6 +21,53 @@ > > #include "internal.h" > > +/** > + * DOC: bootmem overview > + * > + * Bootmem is a boot-time physical memory allocator and configurator. > + * > + * It is used early in the boot process before the page allocator is > + * set up. > + * > + * The bootmem is based on the most basic of allocators, a First Fit * Bootmem is based on or * The bootmem allocator is based on > + * allocator which uses a bitmap to represent memory. If a bit is 1, > + * the page is allocated and 0 if unallocated. To satisfy allocations > + * of sizes smaller than a page, the allocator records the Page Frame > + * Number (PFN) of the last allocation and the offset the allocation > + * ended at. Subsequent small allocations are merged together and > + * stored on the same page. -- ~Randy