Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp3726218pxb; Mon, 30 Aug 2021 09:12:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzi4KPoSVAFHUgy8V5pwElPuBGDToUa/LyzoFXbiZvZrMefeRDbVXgb9/dh2ehb5PD46/xp X-Received: by 2002:a17:906:8cd:: with SMTP id o13mr26484238eje.341.1630339969362; Mon, 30 Aug 2021 09:12:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630339969; cv=none; d=google.com; s=arc-20160816; b=j7spjCvNRathqgBXwWe3Mt0yG9jqiFrI7ijn8oRZJoo6jjktvj6PTaPDHfGFu1+ud0 FdKbmMFjpSuLLeaJPQQGdzSDKOcNYblPw+smOIHLZlA0zwjns85vV0aM9JUKgfcAn2rv ImmGIJiW8xQAeSAsgck+5FCVLRRDev7RAbMaS4MJgblg1WYKbblBLOTptYQE8HcZFcVr 4P28q4/RyNLEnXagbQGygpRT9jTSs/xMUKf8kiTFJ4O0az9+J9eL27+MvP61+aqDtzpQ dGI1i8IjL/gqcwdjk8KVz6FMrrbbN38VBskpELKlfjN8yOt3Vij7PcCOhz5+fxBttQxl aSzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=EHqXGS4rmfnFPRkL3Bz0NEQ2HPIJJIscM9YFhWiT28o=; b=WXMvWZQsTaPQVE8I8e1Cxh4DdCYjRMTMb5Huc3eQelHZPx2DA7qQWH6pTpMjw7ETdx kBImWrqqtQ7xHvxfPiluk7HK4D2zG302LcG+fEo7pq0/1Dfq4sQShmZbFOBhVbR7kURh mZjaEzp/Io8lKCVFi4ru3h+R0u37PlP420q3byLQ6A2JKRcfXXWH8DErOFcnPMV5vMcu mduT+4y4pb1NHEP4zn11NTdNXHJPANlWG3VJeElYjXfDhytMMdG1noj+tQH3m9IWFH4I Nm3d7y3t8fR7I3GCuf5LpVSJoBu1U34jATNp4GlRfx65dhbRyerpSI6B5+4zWsqz7Osr saNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@paragon-software.com header.s=mail header.b=e1uPBsIY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=paragon-software.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id aq12si6091072ejc.417.2021.08.30.09.12.14; Mon, 30 Aug 2021 09:12:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@paragon-software.com header.s=mail header.b=e1uPBsIY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=paragon-software.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237620AbhH3QLd (ORCPT + 99 others); Mon, 30 Aug 2021 12:11:33 -0400 Received: from relaydlg-01.paragon-software.com ([81.5.88.159]:53368 "EHLO relaydlg-01.paragon-software.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231181AbhH3QLc (ORCPT ); Mon, 30 Aug 2021 12:11:32 -0400 Received: from dlg2.mail.paragon-software.com (vdlg-exch-02.paragon-software.com [172.30.1.105]) by relaydlg-01.paragon-software.com (Postfix) with ESMTPS id 2C35F82132; Mon, 30 Aug 2021 19:10:37 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paragon-software.com; s=mail; t=1630339837; bh=EHqXGS4rmfnFPRkL3Bz0NEQ2HPIJJIscM9YFhWiT28o=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=e1uPBsIYZjfQGFoDJQKf5EBXOIUYzpytPsEX6PE7ZGTu7uWyl4qDX21BshQo/FPD/ akvhvaohtc9nT0UBqt8TEOiUuhyAPKLD6YoBmhLiguocX67dsKlEUVe0dAYIwQ06z8 B5VkLu1eIWBv555I+XzohsjZ+U5IaFuzPJyjsai0= Received: from [192.168.211.173] (192.168.211.173) by vdlg-exch-02.paragon-software.com (172.30.1.105) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Mon, 30 Aug 2021 19:10:36 +0300 Subject: Re: [PATCH] Restyle comments to better align with kernel-doc To: Kari Argillander CC: , , , , , References: <20210729134943.778917-1-almaz.alexandrovich@paragon-software.com> <20210803115709.zd3gjmxw7oe6b4zk@kari-VirtualBox> From: Konstantin Komarov Message-ID: <22f979ec-95e5-e95a-0d58-9eb43f2038aa@paragon-software.com> Date: Mon, 30 Aug 2021 19:10:36 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <20210803115709.zd3gjmxw7oe6b4zk@kari-VirtualBox> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [192.168.211.173] X-ClientProxiedBy: vdlg-exch-02.paragon-software.com (172.30.1.105) To vdlg-exch-02.paragon-software.com (172.30.1.105) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03.08.2021 14:57, Kari Argillander wrote: > Capitalize comments and end with period for better reading. > > Also function comments are now little more kernel-doc style. This way we > can easily convert them to kernel-doc style if we want. Note that these > are not yet complete with this style. Example function comments start > with /* and in kernel-doc style they start /**. > > Use imperative mood in function descriptions. > > Change words like ntfs -> NTFS, linux -> Linux. > > Use "we" not "I" when commenting code. > > Signed-off-by: Kari Argillander > --- > Yes I know that this patch is quite monster. That's why I try to send this > now before patch series get merged. After that this patch probebly needs to > be splitted more and sended in patch series. > > If someone thinks this should not be added now it is ok. I have try to read > what is kernel philosophy in case "patch to patch" but haven't found any > good information about it. It is no big deal to add later. In my own mind I > do not want to touch so much comments after code is in. > > I also don't know how easy this kind of patch is apply top of the patch > series. Thanks for the patch. I've applied it to create uniform style of comments. Also removed double line addition from patch: @@ -269,22 +260,28 @@ enum RECORD_FLAG { RECORD_FLAG_UNKNOWN = cpu_to_le16(0x0008), }; -/* MFT Record structure */ +/* MFT Record structure, */ struct MFT_REC { struct NTFS_RECORD_HEADER rhdr; // 'FILE' - __le16 seq; // 0x10: Sequence number for this record - __le16 hard_links; // 0x12: The number of hard links to record - __le16 attr_off; // 0x14: Offset to attributes - __le16 flags; // 0x16: See RECORD_FLAG - __le32 used; // 0x18: The size of used part - __le32 total; // 0x1C: Total record size + __le16 seq; // 0x10: Sequence number for this record. + __le16 hard_links; // 0x12: The number of hard links to record. + __le16 attr_off; // 0x14: Offset to attributes. + __le16 flags; // 0x16: See RECORD_FLAG. + __le32 used; // 0x18: The size of used part. + __le32 total; // 0x1C: Total record size. + + struct MFT_REF parent_ref; // 0x20: Parent MFT record. + __le16 next_attr_id; // 0x28: The next attribute Id. - struct MFT_REF parent_ref; // 0x20: Parent MFT record - __le16 next_attr_id; // 0x28: The next attribute Id + __le32 used; // 0x18: The size of used part. + __le32 total; // 0x1C: Total record size. - __le16 res; // 0x2A: High part of mft record? - __le32 mft_record; // 0x2C: Current mft record number + struct MFT_REF parent_ref; // 0x20: Parent MFT record. + __le16 next_attr_id; // 0x28: The next attribute Id. + + __le16 res; // 0x2A: High part of MFT record? + __le32 mft_record; // 0x2C: Current MFT record number. __le16 fixups[]; // 0x30: };