Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934597AbcKKSm2 (ORCPT ); Fri, 11 Nov 2016 13:42:28 -0500 Received: from aserp1040.oracle.com ([141.146.126.69]:34224 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933880AbcKKSm1 (ORCPT ); Fri, 11 Nov 2016 13:42:27 -0500 Subject: Re: [RESEND PATCH] fs: jfs: Replace CURRENT_TIME_SEC by current_time() To: Deepa Dinamani , linux-kernel@vger.kernel.org, jfs-discussion@lists.sourceforge.net References: <1478887253-3651-1-git-send-email-deepa.kernel@gmail.com> Cc: arnd@arndb.de, y2038@lists.linaro.org From: Dave Kleikamp Message-ID: <40f2bfb8-fa81-f21a-551b-c559bf0a0048@oracle.com> Date: Fri, 11 Nov 2016 12:42:10 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <1478887253-3651-1-git-send-email-deepa.kernel@gmail.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Source-IP: userv0021.oracle.com [156.151.31.71] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1015 Lines: 33 On 11/11/2016 12:00 PM, Deepa Dinamani wrote: > jfs uses nanosecond granularity for filesystem timestamps. > Only this assignment is not using nanosecond granularity. > Use current_time() to get the right granularity. I had thought these were being handled as a group. I'll push this one through the jfs tree. Thanks, Shaggy > > 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); >