From patchwork Mon Feb 22 15:17:54 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Deepa Dinamani X-Patchwork-Id: 8378981 Return-Path: X-Original-To: patchwork-linux-nfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 48C8A9F372 for ; Mon, 22 Feb 2016 15:27:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6480B204E3 for ; Mon, 22 Feb 2016 15:27:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6C4E62041F for ; Mon, 22 Feb 2016 15:27:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752927AbcBVPYL (ORCPT ); Mon, 22 Feb 2016 10:24:11 -0500 Received: from mail-pa0-f43.google.com ([209.85.220.43]:35468 "EHLO mail-pa0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751616AbcBVPYH (ORCPT ); Mon, 22 Feb 2016 10:24:07 -0500 Received: by mail-pa0-f43.google.com with SMTP id ho8so95179716pac.2; Mon, 22 Feb 2016 07:24:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=TZc426RUcjzsYLGpXhf5Hu9T5mUdczqwWaI+K+dVBjo=; b=scesXe30rjV3hET9+8rciWszUrKE6UFkPsoz0xvO0WX0qjj2olLJPhNhaK5RlvMPfi TS1ddEmfSNHK8KTq0xOePm309QalIjvXDnH87bwBv86mre+Cu2whUzLAwoXKxkQ1QqKA NZhGs086ZwDtgAWQV50F1FAlamJpGsjlJ6p35gPXOGElp0/ieuLRBORWmmYIWmvl8OnU CuAR/3BankmAT44DQ5HzIp4eTb8PnX0dzDm8CrFzdNbHOLsalNwBfAjcG8AX9fc2zqkq fv3kdOJjarPiTdEzEV2v4orVBk2Yr3AN25eMjQBpIYJuj5F3cPfQLcMZoP3oUNVE/ytg 4iQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=TZc426RUcjzsYLGpXhf5Hu9T5mUdczqwWaI+K+dVBjo=; b=X9ndxROU4U2zObNHEH3Q3cv5QQwqdZBoIGg+yJba49gPXiiT/WiyrOhhxwnx4Fbtnt 4iPk6BaGFCbYBVrBDOgQqG1SvERyZedcEUmCsTeq4LeiA8V486EZTZG1I1isHVO862/s BENNE/0VTXyoMO6rmA7che7CgzzgUwXzLYyZYpCIPUPRWtrvfPlwbjXJ/NWWSL5SmRbd MBt+RBw3645KiRU0OgsFNfRNev591Chl/xsdewGhyJ4yj7CoSeCh+jENNJl6PNw+QeYb xBrbq36kmFGFR7t7z9qq+GLGUUVO0vWqLwrTqbadrpu85JHyPsb46ht+pD3YGOC8isf8 Z61A== X-Gm-Message-State: AG10YOR0yq8alUpwOHI+5ABLXsaNHWauMnom22Y8Q16XS444roIQ7hnLnK5haOzDEP1Flg== X-Received: by 10.66.101.36 with SMTP id fd4mr39338898pab.76.1456154646727; Mon, 22 Feb 2016 07:24:06 -0800 (PST) Received: from localhost.localdomain ([106.51.225.115]) by smtp.gmail.com with ESMTPSA id z3sm37888603par.17.2016.02.22.07.23.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 22 Feb 2016 07:24:05 -0800 (PST) From: Deepa Dinamani To: linux-fsdevel@vger.kernel.org, y2038@lists.linaro.org Cc: Arnd Bergmann , linux-kernel@vger.kernel.org, "J. Bruce Fields" , Jeff Layton , Trond Myklebust , Anna Schumaker , "David S. Miller" , linux-nfs@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH 8/8] net: sunrpc: Replace CURRENT_TIME by current_fs_time() Date: Mon, 22 Feb 2016 07:17:54 -0800 Message-Id: <1456154274-30487-9-git-send-email-deepa.kernel@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1456154274-30487-1-git-send-email-deepa.kernel@gmail.com> References: <1456154274-30487-1-git-send-email-deepa.kernel@gmail.com> Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP CURRENT_TIME macro is not appropriate for filesystems as it doesn't use the right granularity for filesystem timestamps. Use current_fs_time() instead. Signed-off-by: Deepa Dinamani Cc: "J. Bruce Fields" Cc: Jeff Layton Cc: Trond Myklebust Cc: Anna Schumaker Cc: "David S. Miller" Cc: linux-nfs@vger.kernel.org Cc: netdev@vger.kernel.org --- net/sunrpc/rpc_pipe.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/net/sunrpc/rpc_pipe.c b/net/sunrpc/rpc_pipe.c index 31789ef..bab3187 100644 --- a/net/sunrpc/rpc_pipe.c +++ b/net/sunrpc/rpc_pipe.c @@ -477,7 +477,9 @@ rpc_get_inode(struct super_block *sb, umode_t mode) return NULL; inode->i_ino = get_next_ino(); inode->i_mode = mode; - inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; + inode->i_atime = current_fs_time(sb); + inode->i_mtime = inode->i_atime; + inode->i_ctime = inode->i_atime; switch (mode & S_IFMT) { case S_IFDIR: inode->i_fop = &simple_dir_operations;