From patchwork Thu Jun 9 05:04:49 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Deepa Dinamani X-Patchwork-Id: 9166205 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 395DD60467 for ; Thu, 9 Jun 2016 05:06:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2C9EA200E7 for ; Thu, 9 Jun 2016 05:06:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1FF3828294; Thu, 9 Jun 2016 05:06:23 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B972C200E7 for ; Thu, 9 Jun 2016 05:06:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1426276AbcFIFF4 (ORCPT ); Thu, 9 Jun 2016 01:05:56 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:35029 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934098AbcFIFFr (ORCPT ); Thu, 9 Jun 2016 01:05:47 -0400 Received: by mail-pf0-f193.google.com with SMTP id t190so2028601pfb.2; Wed, 08 Jun 2016 22:05:46 -0700 (PDT) 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=fBoC13TLdRYGBOtOfT6hQi2yIsTDTmftrJGR1tg3hIk=; b=Hjc6qhlPH9vtH6X3FX2UfD9u3nnM1uFWhMjGKgTAjB6fc0PRvATMN067GJX0WLAZQZ 3DqWF6VJwOe53QJHOPMVYmQQHXP9brZ7DbO2REJryzexWvlsliAXBjSE7UvnF8cBGHao b+kXFMSo0/LcW6QLTLxhCaVa/kO2+EYAdrMxIA8qpj3WHzPn9YNHX6+RiP6nnxWvK1FO qzbU/Oq1UENNfZz37wGFlLvW0KozpXqETMNmx/Sh25jV+bOxINlGnKguqFF0a2eRDIEE cbTz8P5Is6nYOXob4u1d0W54S47AFTtjdq9zjeMOG0cZKW+70n1+mzSR6DfajohHj+aS cmnA== 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=fBoC13TLdRYGBOtOfT6hQi2yIsTDTmftrJGR1tg3hIk=; b=MIs/PmMjr6ZdhCNkawHKjLXvleudXrx4D93PukmnYIa2wWbCMSLdcsg+MXu2HKT10j zvjWvzw6Paa60sBqHJ8lPF7R5tnHSWObp3SlviMNXiW1GEg5/Ssb4n+zCapFDH0opN7K Q6oKJsrnelFzh8P6jYjKqfs+qn4r7a61EXpoq/hEX/qbXUVmnh8/YLLhNPfBruYfvrdk 6mC6O4afj2GXwyt4ZM6Hpnlqn8xPX5CuDK+grb7yzkRudrlkDVwUvzxttY7mWLENu/Zm Sk1ltvxFGjcO+bUGnaOSihZHeWxb15vZi3Atm/h31YWyY9w4iSmKfuVubuFc2nOcGjg/ gjBA== X-Gm-Message-State: ALyK8tKlbY3V76sc88mfnLc/6lvbZhal8mPqb0AXTYN4Xh07ePmXOr3Sk84g9PArUfiE3A== X-Received: by 10.98.62.15 with SMTP id l15mr2629678pfa.24.1465448745839; Wed, 08 Jun 2016 22:05:45 -0700 (PDT) Received: from deepa-ubuntu.hsd1.ca.comcast.net (c-73-252-251-201.hsd1.ca.comcast.net. [73.252.251.201]) by smtp.gmail.com with ESMTPSA id 129sm6220808pfe.3.2016.06.08.22.05.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 08 Jun 2016 22:05:45 -0700 (PDT) From: Deepa Dinamani To: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Arnd Bergmann , Thomas Gleixner , Al Viro , Linus Torvalds , y2038@lists.linaro.org, Dave Kleikamp , jfs-discussion@lists.sourceforge.net Subject: [PATCH 05/21] fs: jfs: Replace CURRENT_TIME_SEC by current_fs_time() Date: Wed, 8 Jun 2016 22:04:49 -0700 Message-Id: <1465448705-25055-6-git-send-email-deepa.kernel@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1465448705-25055-1-git-send-email-deepa.kernel@gmail.com> References: <1465448705-25055-1-git-send-email-deepa.kernel@gmail.com> Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP jfs uses nanosecond granularity for filesystem timestamps. Only this assignemt is not using nanosecond granularity. Use current_fs_time() to get the right nanosecond granularity. Signed-off-by: Deepa Dinamani Cc: Dave Kleikamp Cc: jfs-discussion@lists.sourceforge.net --- fs/jfs/ioctl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/jfs/ioctl.c b/fs/jfs/ioctl.c index 8653cac..b52aedf 100644 --- a/fs/jfs/ioctl.c +++ b/fs/jfs/ioctl.c @@ -60,6 +60,7 @@ long jfs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) { struct inode *inode = file_inode(filp); struct jfs_inode_info *jfs_inode = JFS_IP(inode); + struct super_block *sb = inode->i_sb; unsigned int flags; switch (cmd) { @@ -121,7 +122,7 @@ long jfs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) jfs_set_inode_flags(inode); inode_unlock(inode); - inode->i_ctime = CURRENT_TIME_SEC; + inode->i_ctime = current_fs_time(sb); mark_inode_dirty(inode); setflags_out: mnt_drop_write_file(filp); @@ -130,7 +131,6 @@ setflags_out: case FITRIM: { - struct super_block *sb = inode->i_sb; struct request_queue *q = bdev_get_queue(sb->s_bdev); struct fstrim_range range; s64 ret = 0;