From patchwork Wed Jun 20 15:33:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 139360 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp933879lji; Wed, 20 Jun 2018 08:34:48 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJAI2cm3qats/V0FCzQWfJCpp5II0Yh/+AxVbqiskhrvS3VMOjU6ZvaQSzfQTMDf8BjBMTD X-Received: by 2002:a62:4f4f:: with SMTP id d76-v6mr23171033pfb.188.1529508888496; Wed, 20 Jun 2018 08:34:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529508888; cv=none; d=google.com; s=arc-20160816; b=i/+OOGvS7jjQ3RaCJQj6ssDpO8AtJeF2Xbpt0go5yKumpruLScTQ9VTBT4R5uz5jaq AgnaKcumZ1D25ww/XO0RYY2Jc06USCb7g9bAtRMrpmbjRf/k0U+n3pQgdESXinWFHR0f tx6IIm40KsrGY+Awcnd4ceF94wH+TIFlOd5mLaWWnoK8A6Nxg9NcOhyZhWt/P/VHghIb g/38XEWqaD/H0m6kaeZuiJgWzj5775ilSiYmwVzmniuUUox5S/9Kt64ZOK2nQTIIpuPu lzl3iUbE9mvM4f26QjPaoiUWptZreXsjdRrzMby6edrGuOJJvDN7zTVo4hiVy+bXoJJr +PUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=xudS0gtv5coRD6osH1l4kcftmP3nykaK1XmQYkesLtE=; b=nrtoqKqvyRZaFOiXuvrrXEueOeuePcHqQaIJxZ3/GXgsBFjGAFGC3pNIJO2+C4GNf2 qOqjAJ9GBtfQdwX+2qAa1W9TIwHDKrEh+8I6/9WzTrLClAL4WRMrrPf2poVxBrs14yUz L4IL6fMIMl8TByYWFjh3yBA3Z9hEoFYyF1HJADXOFPeOdkobhSDEkg/3/Rls6z+US7ur jPiN/0AVeX321BSaRCzWE/ZAiQbzmxYBp2YV/GGI4xvU9LdqV7s3fB0uVnTgsR6eDjGd tUW4/URgWjk3hA3/Wd2VUbEXvEYO19tU0v+TzGUqolqwCyaoQ/otH+Qx5GOi74Far3RY pMrA== 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 3-v6si2748244pla.418.2018.06.20.08.34.48; Wed, 20 Jun 2018 08:34:48 -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; 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 S1754382AbeFTPeq (ORCPT + 30 others); Wed, 20 Jun 2018 11:34:46 -0400 Received: from mout.kundenserver.de ([212.227.126.134]:51519 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754335AbeFTPeo (ORCPT ); Wed, 20 Jun 2018 11:34:44 -0400 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue001 [212.227.15.129]) with ESMTPA (Nemesis) id 0Lj9jT-1g3dAS0Q0d-00dXvs; Wed, 20 Jun 2018 17:34:27 +0200 From: Arnd Bergmann To: Theodore Ts'o , Andreas Dilger , Jan Kara Cc: y2038@lists.linaro.org, linux-ext4@vger.kernel.org, Arnd Bergmann , linux-kernel@vger.kernel.org Subject: [PATCH 5/6] jbd2: replace current_kernel_time64 with ktime equivalent Date: Wed, 20 Jun 2018 17:33:02 +0200 Message-Id: <20180620153322.54221-5-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20180620153322.54221-1-arnd@arndb.de> References: <20180620153322.54221-1-arnd@arndb.de> X-Provags-ID: V03:K1:XB5O87moimnOK3P1rqIZynulXeYHVuVcxg64p/U2NlN+GmgBkoY TCFvu8hRg9UWSg2wkde0gQ+dWGdUtr5rnK7BdNJ36bBDvg4fdUui7HuPA6ZBoSpHKV5J8+S G8Toirw7QhINkYpvFawbcLb8WPhq2XMk/HXvq9kTKN4dNc9OQZk1GIYw0MY0U4a61PGElbv Fak9GQlMOlngjlz88BfhQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:JQ8pSVmYQzY=:N7amg/iW1b8mUo9Srs39/M cI6sGpvuFHlDX3kVz5tvgF5YBOSc14BW+2vKHDQCKAV1SW22h7haZwHAli+gq0NqZsK9jaa2W BDNTphg7bmHAWRcUdETQyNXjlWrwtO75rzPMelD+H7oe6jjYYtu2SB6OtD1aREQ76+1A8z//a gg0ut8DHXNK3+K6WYN3JEJNn2yac3aZ9JpsCpbrW3oQ3zpR/bXIqL8edui6Q0z81Ocf9IJs33 aZgE+5MBFixWOhBmbRZaU0sY29TcFd3Rc7tLxQxOf9WxmYBDmLdMUW3xSZcLAPQ411ouywD1L TL2yJ2ia8iWggLRnFaN8XvVVnoy1Piw2XrkC5e4j4bWmm/Tbfq9QvhgJvc+OrtmVV0BFTO5xY 9QJ6yqEZS97tdjEUMSLhoFn+twzRatzMp5lWN3cUdzBOQiuoatH4qzTO6lvTdUIb9IWL7HHVs gWwnN40Z7XyctS0eVv9J0TmnEqpt/Nvfkyt0pOLG6QVIfWTciK2utHB3+nwOTli9l9x8zOSCH wryUAkYCWPBxKqT3XVeM0On7eDTSR2gZTlw8JqowTnbk38HYbLYkYEVWb3anbRRSP7ASlZxiM eSCEj9NohomPsAeYCN5K5ujMZCU1Z8id/WwYgQ/ymN4VkkPteXWF7MU+sET5W/xHvOBGSaDLY z73TR2F+AWY5iyHLgXnGrjGYsTmXE8/wVfCK+SRAEJv2yUbHaAioQmLNU6V01LzlOc2g= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org jbd2 is one of the few callers of current_kernel_time64(), which is a wrapper around ktime_get_coarse_real_ts64(). This calls the latter directly for consistency with the rest of the kernel that is moving to the ktime_get_ family of time accessors. Signed-off-by: Arnd Bergmann --- fs/jbd2/commit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.9.0 Reviewed-by: Andreas Dilger Reviewed-by: Jan Kara diff --git a/fs/jbd2/commit.c b/fs/jbd2/commit.c index 8de0e7723316..150cc030b4d7 100644 --- a/fs/jbd2/commit.c +++ b/fs/jbd2/commit.c @@ -121,7 +121,7 @@ static int journal_submit_commit_record(journal_t *journal, struct commit_header *tmp; struct buffer_head *bh; int ret; - struct timespec64 now = current_kernel_time64(); + struct timespec64 now; *cbh = NULL; @@ -134,6 +134,7 @@ static int journal_submit_commit_record(journal_t *journal, return 1; tmp = (struct commit_header *)bh->b_data; + ktime_get_coarse_real_ts64(&now); tmp->h_commit_sec = cpu_to_be64(now.tv_sec); tmp->h_commit_nsec = cpu_to_be32(now.tv_nsec);