From patchwork Sat Aug 13 22:48:19 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Deepa Dinamani X-Patchwork-Id: 9278725 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 E93536086A for ; Sun, 14 Aug 2016 10:32:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D829428A4A for ; Sun, 14 Aug 2016 10:32:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CCF7D28A58; Sun, 14 Aug 2016 10:32:43 +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 528DD28A4A for ; Sun, 14 Aug 2016 10:32:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932205AbcHNKce (ORCPT ); Sun, 14 Aug 2016 06:32:34 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:34728 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752713AbcHNKcc (ORCPT ); Sun, 14 Aug 2016 06:32:32 -0400 Received: by mail-pf0-f195.google.com with SMTP id g202so2106334pfb.1; Sun, 14 Aug 2016 03:32:32 -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=pPCS8AilRlH4SL2eCAeFqo5jXBYH0GucmsYwYxJav0g=; b=JV0Mgw/ioEu/A99jf5UYga7CzIM/W5/617PzlFLLaXTovUjosSDvY+0UNFYUKeSauG /831CR7FLwSB05gFAqbdOGhCjOA3Qm/8gnMT4MuyUJjwBtH8oVcWQhBkfB3HU83wYHGI 9IU1KdO4TNwc9kBeY0tks4gPxU5nlYAvSNLsKngGT1LWVThsyRC77udBWp4O+QFXLHNb HdzWPIf9hicpRBYVCuHwW2OWyyqQ1Gr3YLFx0aP82tp9LeGXJiXWunRXFq6KdWcBOiU7 5Tp0A5bO0vR0GLfwY/gfAng4hmukhiFzkWHPvSEvqB6WRO19oPSJl343yANQd2ho0C8J X3lA== 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=pPCS8AilRlH4SL2eCAeFqo5jXBYH0GucmsYwYxJav0g=; b=KZhuheVzyxQwgkmPgoqNPm1sWBkm8ri7apzJpXR4A4k7Hq7CjKr/OZhwVKxIH/zyR1 Xqjz74Oq5e/d8HmWDJMnqb3Tof/ok0w7GOGDmwQtZLns/dvZmg2XWttO1YbwHUXcnyLq 78tBPsVpbkTKcisUhBByjAdglfi92Rrn2SiZ7Y6KSERdmcLS+Io7Tv7rGFsb96jKxBJW jHMhstJ+r2FIW8QLQyoOPCK3B1xHkdLHza7qEZjhKQCiVQj1fz9Ji9lRhWrXB9x6DQIC N161wJ/L3QaI9scRhdNGoIBJNp+RQ3He1Mm92jY2k119dVsvF/KJMuHny39Hll9hGbMt bSuQ== X-Gm-Message-State: AEkooutE/0Devk6Mzc3oNk8nGQHGhXF6HSM64GNr++A8X+3ju3TSV42BIha0lC7SL+oeFw== X-Received: by 10.98.222.70 with SMTP id h67mr39873957pfg.128.1471128564831; Sat, 13 Aug 2016 15:49:24 -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 81sm22528007pfm.90.2016.08.13.15.49.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 13 Aug 2016 15:49:24 -0700 (PDT) From: Deepa Dinamani To: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Cc: arnd@arndb.de, tglx@linutronix.de, torvalds@linux-foundation.org, tytso@mit.edu, viro@zeniv.linux.org.uk, y2038@lists.linaro.org, Dave Kleikamp , jfs-discussion@lists.sourceforge.net Subject: [PATCH v4 07/26] fs: jfs: Replace CURRENT_TIME_SEC by current_time() Date: Sat, 13 Aug 2016 15:48:19 -0700 Message-Id: <1471128518-24075-8-git-send-email-deepa.kernel@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1471128518-24075-1-git-send-email-deepa.kernel@gmail.com> References: <1471128518-24075-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 assignment is not using nanosecond granularity. Use current_time() to get the right granularity. Signed-off-by: Deepa Dinamani Cc: Dave Kleikamp Acked-by: Dave Kleikamp Reviewed-by: Arnd Bergmann Cc: jfs-discussion@lists.sourceforge.net --- fs/jfs/ioctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/jfs/ioctl.c b/fs/jfs/ioctl.c index 8653cac..b6fd1ff 100644 --- a/fs/jfs/ioctl.c +++ b/fs/jfs/ioctl.c @@ -121,7 +121,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_time(inode); mark_inode_dirty(inode); setflags_out: mnt_drop_write_file(filp);