From patchwork Mon Jun 18 16:59:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 10472293 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 7832A6032A for ; Mon, 18 Jun 2018 17:00:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6623928AD0 for ; Mon, 18 Jun 2018 17:00:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5AEC928AED; Mon, 18 Jun 2018 17:00:23 +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 EA8C428AD0 for ; Mon, 18 Jun 2018 17:00:22 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 692A66B000C; Mon, 18 Jun 2018 13:00:20 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 61A8A6B000D; Mon, 18 Jun 2018 13:00:20 -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 3FE796B000E; Mon, 18 Jun 2018 13:00:20 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-wr0-f200.google.com (mail-wr0-f200.google.com [209.85.128.200]) by kanga.kvack.org (Postfix) with ESMTP id CBC7E6B000C for ; Mon, 18 Jun 2018 13:00:19 -0400 (EDT) Received: by mail-wr0-f200.google.com with SMTP id z69-v6so12333916wrb.20 for ; Mon, 18 Jun 2018 10:00:19 -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=/BnKlMq/Vnl2JjQAHfFLiqy8QkMh6PadCWko1S1CP0g=; b=Zg/9I3I6Nq+UcPpAm3y0TKnqNjLmetnZAvkjtfvAHP+3McWhVN+IPTPQAqvuqZvKrM sBS47reb1FydUh9En4MwZZFNv5xKId3ax9LxGTRJ6wbawNdYWHwAIztaQ/dP66+rEWly 6MEOtPYwKgjBkZqXZTqMXZp2gp6aqT7AEFRQ0n1T5024vhF/ve1kpgn7ydP2n3Owi5Fq Lj72VIVZT809FATRyDUh1QpzmzqXzm1M6bLuXUciPzIBYNNfccf1pbmCOU2QZZbb2R4x ALW4k/78sAIoNxfARMU4G2w9OXoOMjSgOBP0xI62/EfDjnn2gKOC3FMrl/3TiQc/QErt xsOg== 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: APt69E01V1xkbfVTxifAnh1hGYvPke1VXnQImiM6eZeJ/HPsj018Agad JoygNYLgjlpjgRPC935FRoFS0ZLJz4tcELPEX3TQo6/B3+ZS9Fqnhs8ZlxlbzFvc3nWEfxZn4Re 7nng6OdWuOsI3K1gHni5+cvIxRacD9qRmiPF2vBgENkjRlgS9miKfNaxX37lOSZY= X-Received: by 2002:adf:dd03:: with SMTP id a3-v6mr11701348wrm.2.1529341219391; Mon, 18 Jun 2018 10:00:19 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKYjI7YkgiV6nA734TYUk8dLpeKGLy7MGQS5/3IzZblIcziGiLaUfLnnuFB5zOpcHqjCfgt X-Received: by 2002:adf:dd03:: with SMTP id a3-v6mr11701286wrm.2.1529341218329; Mon, 18 Jun 2018 10:00:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529341218; cv=none; d=google.com; s=arc-20160816; b=yeLKLQKSfF+cA7ioMIjY3+wR+J7i16zpr85a7iAVEdN6XQMYgGImxHgEz0ytFnRgRU lapbWig6TTdv7FaVLf85iSNhZmrsDEGllm543jabW0sprIbLgCTB6z8I1Y4VGXfVv5tg vnXUc3wGSYjVHZnOtRuB1EevuQL+TGzFL9ZOt45GKJXDy4F4ZSrLalWRyDutdKZK7Dlp aXX5XtYeprHVTtThlrPC651IijOKDwe3MP71zWgHxqHHO1lUb+SQ79zHYCTVhhTA3wG+ GcPSF2rzvaGBurkQ7pfagFol6ieGm9eDvlylGTCTGYYuMI8xza/b7eUYSOpRfbInIikN cuHQ== 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=/BnKlMq/Vnl2JjQAHfFLiqy8QkMh6PadCWko1S1CP0g=; b=k7bhVwNUnbBtaGclCLNKZFxuX4N2TKsfSew8af1gD3MZm7bDYqdms3c3vdfBY/T0jB FFOv5f7noA44BFBiwpS3R6hDXOfaNeIAFK6/fDnUlkSsG7RhqHL38dtfCRZ4yXCByfAp Re4OJMK4OhYZ+4W/63Boo0Y/cAElVsRrNaoAzyLt3WkFnsvlYoru6AWIPsMlnvx2O3TN U/QtnR/XzGsKOqH/ZDu1ZVNt+0MewGK8C/bKSMgW4fjF+z8QLBiHn0oY5QZ0VmLuv6R6 vhpOoPrZJuahJR7sOLPtEP+M9m3KHwXSktMZeqpmjBcaBsqCQJv+Vus6D1ODkK4v5vki ouxA== 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 v8-v6si13110091wrm.205.2018.06.18.10.00.17 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Jun 2018 10:00:18 -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 (m0098419.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w5IGwrZY124582 for ; Mon, 18 Jun 2018 13:00:17 -0400 Received: from e06smtp07.uk.ibm.com (e06smtp07.uk.ibm.com [195.75.94.103]) by mx0b-001b2d01.pphosted.com with ESMTP id 2jpfw3299n-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 18 Jun 2018 13:00:16 -0400 Received: from localhost by e06smtp07.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 18 Jun 2018 18:00:15 +0100 Received: from b06cxnps3075.portsmouth.uk.ibm.com (9.149.109.195) 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) Mon, 18 Jun 2018 18:00:12 +0100 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w5IH0Brf28836036 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 18 Jun 2018 17:00:11 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C1C554C046; Mon, 18 Jun 2018 17:51:13 +0100 (BST) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4DEE94C044; Mon, 18 Jun 2018 17:51:12 +0100 (BST) Received: from rapoport-lnx (unknown [9.148.8.74]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Mon, 18 Jun 2018 17:51:12 +0100 (BST) Received: by rapoport-lnx (sSMTP sendmail emulation); Mon, 18 Jun 2018 20:00:09 +0300 From: Mike Rapoport To: Jonathan Corbet Cc: Andrew Morton , linux-doc , linux-mm , lkml , Mike Rapoport Subject: [PATCH 04/11] docs/mm: bootmem: add kernel-doc description of 'struct bootmem_data' Date: Mon, 18 Jun 2018 19:59:52 +0300 X-Mailer: git-send-email 2.7.4 In-Reply-To: <1529341199-17682-1-git-send-email-rppt@linux.vnet.ibm.com> References: <1529341199-17682-1-git-send-email-rppt@linux.vnet.ibm.com> X-TM-AS-GCONF: 00 x-cbid: 18061817-0028-0000-0000-000002D2302C X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18061817-0029-0000-0000-000023896B22 Message-Id: <1529341199-17682-5-git-send-email-rppt@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2018-06-18_07:, , 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-1805220000 definitions=main-1806180197 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..1526ba1 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 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;