Received: by 10.223.185.116 with SMTP id b49csp2041082wrg; Mon, 12 Feb 2018 03:19:31 -0800 (PST) X-Google-Smtp-Source: AH8x226PA6tkdG8R1p/YeAXKEEiZ7PPbRvHwQmokE1YBTF4eIIqHTvDeY34mtu7OumVm7b4Z5+Gi X-Received: by 10.98.13.196 with SMTP id 65mr7767436pfn.139.1518434371321; Mon, 12 Feb 2018 03:19:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518434371; cv=none; d=google.com; s=arc-20160816; b=EX5bKgENeyxGrz4GjOp8foDsJVn2vvUYdCiUaVpbRf/sFJPOafbqQlDwPwzD41o3zH 0rjryQwXvAeGrlkUrS12yNPbXJKlqo6dIp+MzPeU+dSiJfgqq1+Z8GYycnyqsfTs6eWE Qp1A9DY5/k2krbYaGc3k7xDjZDRCNwCMDJgzXr5sspbVMTvRd51P2H56bUUlVIydOW8g lx4/5wHET3wIRISltg8YyK59kygSqGndo7unj+hBJyjYDg+Q/u2EXzA9CYaK3W519SIo EbDx39VxFPhfHINYkPm1YmN/2r4io1+qLhQLZlBpcg0cRp2O/49iBf7WLn5J/S9jZfpT ZOog== 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:arc-authentication-results; bh=KeRlfLVfFlxEerJiwWYxSa85M3TKAOfKPNCsh/3rXKo=; b=idD5oWKLo57srDV83XbJq233z0ZaZfs2G35rTObnwB0ChWnkQ5NU8etIhoUDf3DI4C L6AgCLv64YHp5uXpQYVhCNM4iXBMGzyU6/hXNFuhNShaOsErx8JFOSBBl91RabaADvQj VJOYzWX6y9CZylSyQVFPtY/Y+BDJPRWCbW/n8rMktGK9c47bb6eW+xOgg5/PI7Z55MLM QLemX80LCY9Sp1ziFBQIc6r2teJh13owVLVAONNmlX6jp5+S7zjSSiwhsRWAF0JvfVEr xeNWN27qpS8tbAQ06TKgv7HlBgxgr+3SC/PNy/BMs3WOF30WoTwuj/UPRxWABBWE04YX eIBg== ARC-Authentication-Results: i=1; mx.google.com; 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 m8si4981876pgn.343.2018.02.12.03.19.16; Mon, 12 Feb 2018 03:19:31 -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; 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 S1754114AbeBLLRX (ORCPT + 99 others); Mon, 12 Feb 2018 06:17:23 -0500 Received: from lhrrgout.huawei.com ([194.213.3.17]:26128 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754022AbeBLLRV (ORCPT ); Mon, 12 Feb 2018 06:17:21 -0500 Received: from LHREML712-CAH.china.huawei.com (unknown [172.18.7.106]) by Forcepoint Email with ESMTP id 58A393D73B859; Mon, 12 Feb 2018 11:17:17 +0000 (GMT) Received: from [10.122.225.51] (10.122.225.51) by smtpsuk.huawei.com (10.201.108.35) with Microsoft SMTP Server (TLS) id 14.3.361.1; Mon, 12 Feb 2018 11:17:16 +0000 Subject: Re: [PATCH 1/6] genalloc: track beginning of allocations To: Mike Rapoport CC: , , , , , , , , , , , , References: <20180211031920.3424-1-igor.stoppa@huawei.com> <20180211031920.3424-2-igor.stoppa@huawei.com> <20180211122444.GB13931@rapoport-lnx> From: Igor Stoppa Message-ID: Date: Mon, 12 Feb 2018 13:17:01 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180211122444.GB13931@rapoport-lnx> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.122.225.51] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/02/18 14:24, Mike Rapoport wrote: > On Sun, Feb 11, 2018 at 05:19:15AM +0200, Igor Stoppa wrote: [...] >> +/** >> + * mem_to_units - convert references to memory into orders of allocation > > Documentation/doc-guide/kernel-doc.rst recommends to to include brackets > for function comments. I haven't noticed any difference in the resulting > html, so I'm not sure if the brackets are actually required. This is what I see in the example from mailine docs: /** * foobar() - Brief description of foobar. * @argument1: Description of parameter argument1 of foobar. * @argument2: Description of parameter argument2 of foobar. * * Longer description of foobar. * * Return: Description of return value of foobar. */ int foobar(int argument1, char *argument2) What are you referring to? [...] >> + * @size: amount in bytes >> + * @order: power of 2 represented by each entry in the bitmap >> + * >> + * Returns the number of units representing the size. > > Please s/Return/Return:/ :-( I thought I had fixed them all. thanks for spotting this. [...] >> + * Return: If two users alter the same bit, to one it will return >> + * remaining entries, to the other it will return 0. > > And what if there are three or four concurrent users? ;-) > > I believe that a more elaborate description about what happens with > concurrent attempts to alter the bitmap would be really helpful. ok -- thanks, igor