From patchwork Sat Jun 30 14:54:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 10498235 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8CC4E60230 for ; Sat, 30 Jun 2018 14:55:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7DF4328F7E for ; Sat, 30 Jun 2018 14:55:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 726382906E; Sat, 30 Jun 2018 14:55:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0097A28F7E for ; Sat, 30 Jun 2018 14:55:33 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B8A126B0266; Sat, 30 Jun 2018 10:55:28 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id B0FF16B0269; Sat, 30 Jun 2018 10:55:28 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 965946B026A; Sat, 30 Jun 2018 10:55:28 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-wm0-f70.google.com (mail-wm0-f70.google.com [74.125.82.70]) by kanga.kvack.org (Postfix) with ESMTP id 2C9906B0266 for ; Sat, 30 Jun 2018 10:55:28 -0400 (EDT) Received: by mail-wm0-f70.google.com with SMTP id q12-v6so1726492wmf.9 for ; Sat, 30 Jun 2018 07:55:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-original-authentication-results:x-gm-message-state:from:to:cc :subject:date:in-reply-to:references:message-id; bh=AVKq9DiVxaadgowtC3QHvuyz7+totRf/NGcFsoOuaNA=; b=b1pq5lKUF1Ru0exUvLNc8wESKV6zvQkjyPA+gubWcawYGQzPBMeNDp6VZx58IZVX+/ 8IW6Qxkx2SiwxCX567QoL5HXunT/npuNZcRqQHUzDVgj3e2j3+g2AZfkxVUTMnNwtgAz 803ZVXCshpBq++tZD5Nck4Py/Y7lJfdeWtYd2Y3R8hZ429sri7FWJ92cBYDJRcWSkCGN 1k2p9CUGO9vW9GtsBaqFZviRKjXudJJvu1oQ+M4EZ77SJB9TducNXl1vjsaFv5fprwIk vjfyJYmUcb8pc23s8PfYEzFjEI7zkoOAa0xHFU+RQwZJuY2JrEGvlTPueD7h6ioiiwBG 4Z5g== X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 148.163.158.5 is neither permitted nor denied by best guess record for domain of rppt@linux.vnet.ibm.com) smtp.mailfrom=rppt@linux.vnet.ibm.com; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com X-Gm-Message-State: APt69E3Pn/Wwko4OKYoXHJCrI+yU2oqruq7qIY5bdA56tQGgovk1haTp OboUBSebKDFaladAxmguoogyNH3MMuod4hyBPsvEg4KeFssPA+6jm8E+cmLpO0lP8zEypDhqkd0 LuT4ho2lrdqjmqd4Hf3rERY2FgXmv5OBsDjWdjwGYHriZmEWPeNTWjhVmySXs2FQ= X-Received: by 2002:adf:9063:: with SMTP id h90-v6mr15632278wrh.147.1530370527684; Sat, 30 Jun 2018 07:55:27 -0700 (PDT) X-Google-Smtp-Source: AAOMgpf6BflqIl0UnXn/+f+GbCozSH/HZpAkn4WlbQ4nxMiBneD/L48GhosT4udBjxAwQsRgUYzf X-Received: by 2002:adf:9063:: with SMTP id h90-v6mr15632260wrh.147.1530370527001; Sat, 30 Jun 2018 07:55:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530370526; cv=none; d=google.com; s=arc-20160816; b=c/NHfcpiF27qy81Y3hOmAx+K8tDmdGyYCoJIFpGlh9KqBbF1KZCHYzmxl54HTNEgAg MwhEcckPzHbt5Upj2gsCiav++CgkWgR5UPyXp+3K3xo6z9LbF/dlR8Fvbe6QSz19YFjM /3MneBrU5EmEEY/99jpfgYNm/oLID4KoXQITj16kqx7MafmWnqWoCTUC3OO/dUFLgPFh 582PXbjW4E5gzLhBdhdtOqaN8C/1d0sWNMuGI3/mtMcY4neV+owCwVodEMEg06IqkkYw EPb59w14scI9iAdEFKyjIh90Cetr7Q8HShOrDv6EFrnkhn66T62n+8H1GV2ZogbM3Tlb KyVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:references:in-reply-to:date:subject:cc:to:from :arc-authentication-results; bh=AVKq9DiVxaadgowtC3QHvuyz7+totRf/NGcFsoOuaNA=; b=roq2ad0b/SNv72Zb8abP5DWmK5jHJXsiWYWkOWXt3W4Au7ZsXZ9VjXPC28iYb9lNw5 VmouL4IqBGY4Hffu9vq8feC9jP2BhjUB60P5jo8/Pe0KuLYv7dB3R+aKmokTCpT/jRnp fiFpmwYjfx+DQAsQ43udVOImCAEJArs2abZQIlLl+qCCEzs3OJxAXUK1Xy5bTA3LnqtZ D/WOrkj3z0lBT1tuCbseFSB018LJqtzxcDwjGmGmiYZzltDIJXdiHeDD3J/upsc3k+2n 8X6NCPJ4VbzYJRLGFPuD5SJ+kKyGyHLy6i+91dXOCOAG7LbNDos+0PGC6IA62fBztWQo JEog== ARC-Authentication-Results: i=1; mx.google.com; spf=neutral (google.com: 148.163.158.5 is neither permitted nor denied by best guess record for domain of rppt@linux.vnet.ibm.com) smtp.mailfrom=rppt@linux.vnet.ibm.com; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com. [148.163.158.5]) by mx.google.com with ESMTPS id i21-v6si3554887wmc.131.2018.06.30.07.55.26 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 30 Jun 2018 07:55:26 -0700 (PDT) Received-SPF: neutral (google.com: 148.163.158.5 is neither permitted nor denied by best guess record for domain of rppt@linux.vnet.ibm.com) client-ip=148.163.158.5; Authentication-Results: mx.google.com; spf=neutral (google.com: 148.163.158.5 is neither permitted nor denied by best guess record for domain of rppt@linux.vnet.ibm.com) smtp.mailfrom=rppt@linux.vnet.ibm.com; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: from pps.filterd (m0098414.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w5UErZ5c050287 for ; Sat, 30 Jun 2018 10:55:25 -0400 Received: from e06smtp07.uk.ibm.com (e06smtp07.uk.ibm.com [195.75.94.103]) by mx0b-001b2d01.pphosted.com with ESMTP id 2jx60wj96a-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Sat, 30 Jun 2018 10:55:25 -0400 Received: from localhost by e06smtp07.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Sat, 30 Jun 2018 15:55:24 +0100 Received: from b06cxnps4076.portsmouth.uk.ibm.com (9.149.109.198) by e06smtp07.uk.ibm.com (192.168.101.137) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Sat, 30 Jun 2018 15:55:20 +0100 Received: from d06av24.portsmouth.uk.ibm.com (mk.ibm.com [9.149.105.60]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w5UEtKkd37355616 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Sat, 30 Jun 2018 14:55:20 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id DE3BA42041; Sat, 30 Jun 2018 15:55:06 +0100 (BST) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4AC594203F; Sat, 30 Jun 2018 15:55:05 +0100 (BST) Received: from rapoport-lnx (unknown [9.148.205.240]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Sat, 30 Jun 2018 15:55:05 +0100 (BST) Received: by rapoport-lnx (sSMTP sendmail emulation); Sat, 30 Jun 2018 17:55:17 +0300 From: Mike Rapoport To: Jonathan Corbet Cc: Randy Dunlap , linux-doc , linux-mm , lkml , Mike Rapoport Subject: [PATCH v2 04/11] docs/mm: bootmem: add kernel-doc description of 'struct bootmem_data' Date: Sat, 30 Jun 2018 17:54:59 +0300 X-Mailer: git-send-email 2.7.4 In-Reply-To: <1530370506-21751-1-git-send-email-rppt@linux.vnet.ibm.com> References: <1530370506-21751-1-git-send-email-rppt@linux.vnet.ibm.com> X-TM-AS-GCONF: 00 x-cbid: 18063014-0028-0000-0000-000002D6B5D4 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18063014-0029-0000-0000-0000238E2AF4 Message-Id: <1530370506-21751-5-git-send-email-rppt@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2018-06-30_05:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1806300176 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Mike Rapoport --- include/linux/bootmem.h | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/include/linux/bootmem.h b/include/linux/bootmem.h index 7942a96..4251519 100644 --- a/include/linux/bootmem.h +++ b/include/linux/bootmem.h @@ -27,9 +27,20 @@ extern unsigned long max_pfn; extern unsigned long long max_possible_pfn; #ifndef CONFIG_NO_BOOTMEM -/* - * node_bootmem_map is a map pointer - the bits represent all physical - * memory pages (including holes) on the node. +/** + * struct bootmem_data - per-node information used by the bootmem allocator + * @node_min_pfn: the starting physical address of the node's memory + * @node_low_pfn: the end physical address of the directly addressable memory + * @node_bootmem_map: is a bitmap pointer - the bits represent all physical + * memory pages (including holes) on the node. + * @last_end_off: the offset within the page of the end of the last allocation; + * if 0, the page used is full + * @hint_idx: the PFN of the page used with the last allocation; + * together with using this with the @last_end_offset field, + * a test can be made to see if allocations can be merged + * with the page used for the last allocation rather than + * using up a full new page. + * @list: list entry in the linked list ordered by the memory addresses */ typedef struct bootmem_data { unsigned long node_min_pfn;