Received: by 2002:ac8:5491:0:b0:40f:fb00:664b with SMTP id h17csp630399qtq; Thu, 10 Aug 2023 11:03:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGBWvbJx5zsjAxK8uwB7ybQRFk1/Yx4WXXsV9DX+pOdTeTsRAA9KHV4P+vTv0XnPWHQxCIu X-Received: by 2002:a17:90a:4095:b0:269:33cb:e061 with SMTP id l21-20020a17090a409500b0026933cbe061mr2782111pjg.24.1691690602134; Thu, 10 Aug 2023 11:03:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691690602; cv=none; d=google.com; s=arc-20160816; b=ZMvma/7Q1ItkelwlZoTCu84tfGEujUJ+MuwUFotAvJL5JUi5b1QgxVDBqEGEAlW/gy jKnCUcovuN2PtcKhG1quVuiGrGpRAFFx9KxNZyBJd5Hg4yuk9wnyOveSnxwXjOKIm/nV TCqI/zqIV1MM+d3UWk38qSUh3EoEAlIIiu1k0C10SFyMA0B6yhjKi3B1abdby1cuysGV QTAPuPicM6mBME/2TwNKA141LiSHo8MRZl9LXRs43AWTbK0bEw2OCmfr4DTz6o8lmYiy tVb5aiB9pB8NjTZBCbemEa12ez7rhaDi1H1wxp01b+DEbem/D3WIp8i+pFfb5QyoZbPu Uuxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from; bh=InQAENXR1zRrb6BTUxzuhcmC09RsBFmjWwwHYhqnoS0=; fh=gIzuiZeAFUGnoVdxeN6JxwM8rvR6FxTqEkOZINRFVKE=; b=sMaTiPCkLw8HEKpWnPRWiUUL4QrAnyaGmHvgWA3zNxv/dgajdrLWVLLEN/DYeXoEfC ug7gbNTUHSk+wYQJdSDyIeJ3Iu5LuAvR2jdXaQ9zkVKSOG8v7v4XSgho958pV40vqihF W+bOqj2EbX77ialr+pS4A+y0Jk74O8LIHpxTLCJq41e3Tt+FXzMF+qF07CgWJ/7eDaPA N5IQohb4wgLN2CSsNE1lPDHzTrKht4HHs5RxSwIBYWx1wCtcqKD53txkIl9vS5ck5cHI 2ICGxKyCGwlJEOChplkHZJnXanRStX4DZIcTKKjceJdYENgbJRt9Bl53GYRZQpbEJCGb BdBA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q18-20020a170903205200b001b9eb349550si1777512pla.391.2023.08.10.11.03.05; Thu, 10 Aug 2023 11:03:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234169AbjHJRbS (ORCPT + 99 others); Thu, 10 Aug 2023 13:31:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229447AbjHJRbR (ORCPT ); Thu, 10 Aug 2023 13:31:17 -0400 Received: from mail.parknet.co.jp (mail.parknet.co.jp [210.171.160.6]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id F15172132; Thu, 10 Aug 2023 10:31:16 -0700 (PDT) Received: from ibmpc.myhome.or.jp (server.parknet.ne.jp [210.171.168.39]) by mail.parknet.co.jp (Postfix) with ESMTPSA id 88944205DB99; Fri, 11 Aug 2023 02:31:16 +0900 (JST) Received: from devron.myhome.or.jp (foobar@devron.myhome.or.jp [192.168.0.3]) by ibmpc.myhome.or.jp (8.17.2/8.17.2/Debian-1) with ESMTPS id 37AHVFWc264049 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Fri, 11 Aug 2023 02:31:16 +0900 Received: from devron.myhome.or.jp (foobar@localhost [127.0.0.1]) by devron.myhome.or.jp (8.17.2/8.17.2/Debian-1) with ESMTPS id 37AHVFXB402800 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Fri, 11 Aug 2023 02:31:15 +0900 Received: (from hirofumi@localhost) by devron.myhome.or.jp (8.17.2/8.17.2/Submit) id 37AHVFbi402799; Fri, 11 Aug 2023 02:31:15 +0900 From: OGAWA Hirofumi To: Jeff Layton Cc: Christian Brauner , Frank Sorenson , Jan Kara , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH 2/2] fat: make fat_update_time get its own timestamp In-Reply-To: <20230810-ctime-fat-v1-2-327598fd1de8@kernel.org> (Jeff Layton's message of "Thu, 10 Aug 2023 09:12:05 -0400") References: <20230810-ctime-fat-v1-0-327598fd1de8@kernel.org> <20230810-ctime-fat-v1-2-327598fd1de8@kernel.org> Date: Fri, 11 Aug 2023 02:31:15 +0900 Message-ID: <87msyyn6sc.fsf@mail.parknet.co.jp> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Jeff Layton writes: > In later patches, we're going to drop the "now" parameter from the > update_time operation. Fix fat_update_time to fetch its own timestamp. > It turns out that this is easily done by just passing a NULL timestamp > pointer to fat_truncate_time. > > Signed-off-by: Jeff Layton Acked-by: OGAWA Hirofumi Thanks. > --- > fs/fat/misc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/fat/misc.c b/fs/fat/misc.c > index 37f4afb346af..f2304a1054aa 100644 > --- a/fs/fat/misc.c > +++ b/fs/fat/misc.c > @@ -347,7 +347,7 @@ int fat_update_time(struct inode *inode, int flags) > return 0; > > if (flags & (S_ATIME | S_CTIME | S_MTIME)) { > - fat_truncate_time(inode, now, flags); > + fat_truncate_time(inode, NULL, flags); > if (inode->i_sb->s_flags & SB_LAZYTIME) > dirty_flags |= I_DIRTY_TIME; > else -- OGAWA Hirofumi