Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp3773319pxb; Mon, 30 Aug 2021 10:17:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMux4M2dsdT1KhxVU57xamDfgXtQWxIlNwEbzW7eCvTdzjEDDFs+71PLRG+PyRVZM5r6P1 X-Received: by 2002:a05:6402:705:: with SMTP id w5mr25326297edx.344.1630343852401; Mon, 30 Aug 2021 10:17:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630343852; cv=none; d=google.com; s=arc-20160816; b=MpglFuArCGQ4FnmlvRxh28cAnVm/gfrJCKRFDtQJDkcnlUyBXNvB6jiAHK9nRy86X6 lC/m3PRIs01TvSO4pPBJztrn29jYvkXPmRQJxmoMtqS5TJoOVXxytJr7Qu2oicJfJb5Z gGGN1GetkNOBkAr6r0iGEwv4p6SrXImz55FZHibD62qqtTxrgcHyXPJux03v3fSxxyNt q4Bn31CMvyP8LwodnNpMxsEYX5K9Yv3phZoZSy176N/OoWTewucVGYIl57dyLiO9IqCB 549liPIPRsUMKfkHVoQSbr1ROX2Uxqwdf9K6bd0qHHnlA/fW7UWa2nW1hwmBvayjewIh OqAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=OUPwfutq3p7gRWJvfB60/NPXvXQ2A50TJJGc7tlQfuw=; b=vnL08h6g/emqG0R7XZeQUn8T8GoT0V4qJw1e0j9ZHa4vPrmwQwkjxvTPZoY7Z9iTkA u8AKReHEfU9N3zjFD3STWQ3hXbbhI1vNrwBKo88wDTPpoIW3P9ltVtetwQtwp/O+ixU9 mljJEPsC+GIlX4bk9Tau883CABxyLt4fC8/PdWfROq4ezBH/Bfk33TluIZOmj4XbI3wx MnRM4e3UfWW4qm3dHkgfU3uLYrNpPtONs5z5ZX53e3R8GsRBaHMLmgIIWd6SDZbYW9fS ItBbj9xXHAlQ84aIGjbyu+YSNV5hV1FI9vJfrgzsCdOjPuYoGo0ulK74M7DirJ1TtrQx ye3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=JJT9ce0m; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d6si15052815edv.555.2021.08.30.10.17.05; Mon, 30 Aug 2021 10:17:32 -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=@gmail.com header.s=20161025 header.b=JJT9ce0m; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233712AbhH3ROP (ORCPT + 99 others); Mon, 30 Aug 2021 13:14:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229709AbhH3ROM (ORCPT ); Mon, 30 Aug 2021 13:14:12 -0400 Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C5CEDC061575; Mon, 30 Aug 2021 10:13:18 -0700 (PDT) Received: by mail-lj1-x229.google.com with SMTP id c12so27161300ljr.5; Mon, 30 Aug 2021 10:13:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=OUPwfutq3p7gRWJvfB60/NPXvXQ2A50TJJGc7tlQfuw=; b=JJT9ce0mfNp3+ygIakwtMiwX+OOwlY3n374crFaEkg5Ussedn1qSooGZCaIky4uC1s 13bCBCEiwYukyD0Po6kQ7Q4RDPkYe+3BTbcucXlFu783+EFZ5ytc/FQFtalitcZcIwfu CK5gpdxfb4+rup74dxxFWBI5KURKN0AoXjSFjw2iFZFqsjoRLDTaENp4CFUgGyNRg9Kj nZ8tNl7UGL01OqB2irasylknj2ek8HESvZFx+NGeyP7mhdTbRqNSB1F6xZD00dNVFZlM d8aEZLrqy3yAs3RofEur4SKeNKkIlhT/yKfsk+brXoaCAilvXuTSQw+1bEE32mOBnxxI m+wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=OUPwfutq3p7gRWJvfB60/NPXvXQ2A50TJJGc7tlQfuw=; b=YW6q2atmGEuoHwh1BRqUSXQ7PM5JKW1dEhQzCESQQUJByv3CRB1pR/FOapOPiA+vWk YUS7v3Q2J2kcaNDty2Emh4ZNkEBIex+CVkJhsL2AZQoCf4xFbKVd0bdatBuviSD34NU6 7KCZ6Y6x10lurspyFPG9TAr4ZqBiBtApoFBtbKXUvNEkuFt3M/X9a4llW/qarVwaIxY1 0DD0j5YZT5KETgjD1BRyf1MLuNZPvu7zAmzOaNaVwW8HCDmEzNpv1Xmv5v2IOzrEpYJN QkjaAXKv+RAt6NWAYmTk8udT11DrTIMjYUQQRdehfpwltV/GBFK/n20HythvxrIjG/MY XrEQ== X-Gm-Message-State: AOAM533XHdQCMrGkpDpBBRVqfCR3L6PqgxMcwMnJ3sk7a4ws4DPOsBQa 4Uz2W0Lwz0CXkdBzVMY67iDETqWOctxXeg== X-Received: by 2002:a2e:1514:: with SMTP id s20mr21972764ljd.34.1630343597104; Mon, 30 Aug 2021 10:13:17 -0700 (PDT) Received: from kari-VirtualBox (85-23-89-224.bb.dnainternet.fi. [85.23.89.224]) by smtp.gmail.com with ESMTPSA id i5sm1908829ljm.33.2021.08.30.10.13.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Aug 2021 10:13:16 -0700 (PDT) Date: Mon, 30 Aug 2021 20:13:14 +0300 From: Kari Argillander To: Konstantin Komarov Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, joe@perches.com, dan.carpenter@oracle.com, willy@infradead.org, ntfs3@lists.linux.dev Subject: Re: [PATCH] Restyle comments to better align with kernel-doc Message-ID: <20210830171314.hya2vn3vyohcn4dk@kari-VirtualBox> References: <20210729134943.778917-1-almaz.alexandrovich@paragon-software.com> <20210803115709.zd3gjmxw7oe6b4zk@kari-VirtualBox> <22f979ec-95e5-e95a-0d58-9eb43f2038aa@paragon-software.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <22f979ec-95e5-e95a-0d58-9eb43f2038aa@paragon-software.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 30, 2021 at 07:10:36PM +0300, Konstantin Komarov wrote: > > > 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. There where probably lot of merge conflicts as this patch was made for v27. Also lot of changes since v28 in the code base. You can always ask submitter to rebase patch and resend. Also there where quite lot of nack about this patch so I though this should be dropped, but maintainer decision I guess. > Also removed double line addition from patch: Just ask and submitter will do it for you. > > @@ -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: > }; >