Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp503371ybb; Wed, 8 Apr 2020 04:24:11 -0700 (PDT) X-Google-Smtp-Source: APiQypJBW6xhnJL9OKhwlLbDxhnOY8g/zJ0HZJp4gyfGgR8Mzvzud8QCikcdcV3PdL00bwb+qa0V X-Received: by 2002:a05:6830:1043:: with SMTP id b3mr5322737otp.58.1586345051320; Wed, 08 Apr 2020 04:24:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586345051; cv=none; d=google.com; s=arc-20160816; b=pG/5ryWvYaTPVzFLFZnZSYRouFkOS2CcrrfZl3K/oaZlekWBNt/TLKVm5tidNjbHaF 9r+JjcRB58uV7CbsV8AcKhsppi/y7Vu9bQ+VBGlcXXV/CRzyb1xOw3YZ0WWbK0nyxJFF b8B4mNukGO94kmHGH5R64Mvjk6Ov3MROHvaKCsY3lfN7Ob8ftnkoGRgbhOqwrVkGwedk RGrjltX5LTXnSw7Xox1CdrMP/Zl4YwkhwhwOquPbIw2V1XVzQeQVc41ITPnu6M0ba2Ge VZ8Mw0P3u/LPsDqp79vovx460NXV7GNZbJxSlUdSDcJV8XnlCAfdiStIf/YORyDIcIze Np+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=PWkE951pF6gwEgnZrr9rlPlV6Gs3OzC1B/guo+3Nato=; b=DjUDmkBGrSMvzWxq2FjH7Nuoe/W+eIE4ak4Rp0pXE2bUZcdEGrU4+GzVl053CacUty 7iYaL/GIDWFawBDzibSyZeYEfYRb1WK8Qv1zQZwD+7bhG0241abR+yDvxVnbmwxnVF4B fIextl5fPIK/YP2hLON2EZ3g/x+9qdyHLh0U6fSHbBk7le+9COeaBP3ALgh0kXzSwZUO jQYOdoycV+MI0+h431hd4sahob23kL0/20i/UI2I9bqpO1BtgiL0crJjA78cYJxWjfsJ KVcKZm1JbQhTnLwy6mqfHD3+w+CBm5gT2Av6FNmXzi5ingltMB+sI48FU/9mD8/mOdQj vDhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=jL8HBJZU; 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 b16si2242919oop.83.2020.04.08.04.23.56; Wed, 08 Apr 2020 04:24:11 -0700 (PDT) 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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=jL8HBJZU; 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 S1728421AbgDHLV5 (ORCPT + 99 others); Wed, 8 Apr 2020 07:21:57 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:59166 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728205AbgDHLV5 (ORCPT ); Wed, 8 Apr 2020 07:21:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=PWkE951pF6gwEgnZrr9rlPlV6Gs3OzC1B/guo+3Nato=; b=jL8HBJZUW04p8UIqAHE625jZEu pR+6oxFHckjc35R4VhzZcl01WIJomt7KJiZZRvnX/EC/5B2rTcTamkwArtYmzgw80e71f9+U3s1Nn 9EbFYHkNZomfJ+Lc2/o0l696J0HTYsH7i+fAey2YjCaGuy3l94V5sxK/5b23Pku3AFe+SbtQGCMt2 ptE8WU3lReh6n7K/OYuYAkv940+hijRidD+qYV9oep32w9shhbiP7f3AIzqA1aYrokjRexWTlefYj 7lqqoamXNnvxVZdt+nV5xFauE2xq5BUlu5sp0kv9t9tcxIYgH1R+hKwMK41txIr8UAQzpQmCfog4D 5EejFJ/w==; Received: from willy by bombadil.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jM8mG-0003CR-H4; Wed, 08 Apr 2020 11:21:52 +0000 Date: Wed, 8 Apr 2020 04:21:52 -0700 From: Matthew Wilcox To: Tetsuhiro Kohada Cc: Mori.Takahiro@ab.mitsubishielectric.co.jp, motai.hirotaka@aj.mitsubishielectric.co.jp, Namjae Jeon , Sungjong Seo , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] exfat: replace 'time_ms' with 'time_10ms' Message-ID: <20200408112152.GP21484@bombadil.infradead.org> References: <20200408074610.35591-1-Kohada.Tetsuhiro@dc.MitsubishiElectric.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200408074610.35591-1-Kohada.Tetsuhiro@dc.MitsubishiElectric.co.jp> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Please leave at least 24 hours between sending new versions so that you can collect all feedback relating to your change, and we don't see discussion fragment between different threads. > @@ -84,10 +84,10 @@ void exfat_get_entry_time(struct exfat_sb_info *sbi, struct timespec64 *ts, > t >> 11, (t >> 5) & 0x003F, (t & 0x001F) << 1); > > > - /* time_ms field represent 0 ~ 199(1990 ms) */ > - if (time_ms) { > - ts->tv_sec += time_ms / 100; > - ts->tv_nsec = (time_ms % 100) * 10 * NSEC_PER_MSEC; > + /* time_10ms field represent 0 ~ 199cs(1990 ms) */ > + if (time_10ms) { > + ts->tv_sec += (time_10ms * 10) / 1000; > + ts->tv_nsec = (time_10ms * 10) % 1000 * NSEC_PER_MSEC; I find this more confusing than the original. ts->tv_sec += time_10ms / 100; ts->tv_nsec = (time_10ms % 100) * 10 * NSEC_PER_MSEC; is easier to understand for me, not least because I don't need to worry about the operator precedence between % and *.