From patchwork Mon Jun 20 00:27:04 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Deepa Dinamani X-Patchwork-Id: 9186343 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 5BC6060871 for ; Mon, 20 Jun 2016 00:32:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 559CF2236A for ; Mon, 20 Jun 2016 00:32:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 49BF42237D; Mon, 20 Jun 2016 00:32:33 +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 B9B3C2236A for ; Mon, 20 Jun 2016 00:32:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751965AbcFTAbE (ORCPT ); Sun, 19 Jun 2016 20:31:04 -0400 Received: from mail-pa0-f65.google.com ([209.85.220.65]:33156 "EHLO mail-pa0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751954AbcFTA2M (ORCPT ); Sun, 19 Jun 2016 20:28:12 -0400 Received: by mail-pa0-f65.google.com with SMTP id ts6so9684747pac.0; Sun, 19 Jun 2016 17:28:11 -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=gvNTaL7kCpU8YwcKoA9+P8Waap/hTzeRvTUsJ+TCKZ8=; b=UB3BpzeQ8x1qLaM8KT+aibo1afV8zd6LNjozu88Qafs+6sXM/Nqh7FaWEt8XmeDN2c ginxya1jnnhYd0XsMkq3s7CSZLSlROznru3Yd3yFcSEVUN6x+7tAtFiR52gvyzBwBTa1 JnPR+Oi8kipFTTHoPXiYaKatj3DpDugt4hG+hEl0aPtWTaPoa9b+jervIHGKLl2aazIl Smw5ks7Qxhlw10yOfRsl6rjEZJyD7C/WI6PluN3MgayoQKHafaV7bfDdabQmY0uwRiNq w4GcdQu0UUc/yNwJoa5oJB/R7UZfKIlsfEuJij0AzKAC0OQyExgeOBHPoA0gAn4V2DZT CMmw== 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=gvNTaL7kCpU8YwcKoA9+P8Waap/hTzeRvTUsJ+TCKZ8=; b=ca8i/DFli4eyzTWRLjY+nIfxs7iUmDKvf5k50ChGneUHtownq12p82eEqkDq/dJBz4 7OB+18Mrba1/+UZNukuAP+H3PYsGH64tJNRAajWTZjwA4cpkOxhb7dFOBtf4920TqMd5 6UoyPo+xhISFpEx0u5tG1mMUIwXWemalKCBA5pBe3UR/beCOeCv/HmDkBkkLZvaZ47O9 H11Ubl9u/H99G0RIpT05I/sSOQqPXrfIkNtfnWP8pbkY34Uq4L1aAl92pBsZcgC+7orP 0eoJdMccFHtItwG48VOecNwP3UM+sYpVu7S2i5wTILeanftiqgtSmANcUy/1p2KOv9XL wasw== X-Gm-Message-State: ALyK8tL9fEbCMRK4S5YvpauZNCmZyHMt7b6pC6URzfL0Qta2KLvqRvM+AtxGOAao/ovWug== X-Received: by 10.66.234.5 with SMTP id ua5mr18831960pac.115.1466382491164; Sun, 19 Jun 2016 17:28:11 -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 s12sm34984980pfj.57.2016.06.19.17.28.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 19 Jun 2016 17:28:10 -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 v2 05/24] fs: jfs: Replace CURRENT_TIME_SEC by current_time() Date: Sun, 19 Jun 2016 17:27:04 -0700 Message-Id: <1466382443-11063-6-git-send-email-deepa.kernel@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1466382443-11063-1-git-send-email-deepa.kernel@gmail.com> References: <1466382443-11063-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_time() to get the right granularity. Signed-off-by: Deepa Dinamani Cc: Dave Kleikamp Cc: jfs-discussion@lists.sourceforge.net Acked-by: Dave Kleikamp --- 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);