Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934844AbcKKSBE (ORCPT ); Fri, 11 Nov 2016 13:01:04 -0500 Received: from mail-pg0-f65.google.com ([74.125.83.65]:35547 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756835AbcKKSBD (ORCPT ); Fri, 11 Nov 2016 13:01:03 -0500 X-Greylist: delayed 405 seconds by postgrey-1.27 at vger.kernel.org; Fri, 11 Nov 2016 13:01:03 EST From: Deepa Dinamani To: linux-kernel@vger.kernel.org, dave.kleikamp@oracle.com, jfs-discussion@lists.sourceforge.net Cc: arnd@arndb.de, y2038@lists.linaro.org Subject: [RESEND PATCH] fs: jfs: Replace CURRENT_TIME_SEC by current_time() Date: Fri, 11 Nov 2016 10:00:53 -0800 Message-Id: <1478887253-3651-1-git-send-email-deepa.kernel@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 818 Lines: 26 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 Acked-by: Dave Kleikamp Reviewed-by: Arnd Bergmann --- 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); -- 2.7.4