From patchwork Sat Jun 25 21:37:30 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Deepa Dinamani X-Patchwork-Id: 9198803 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 75BE06075F for ; Sat, 25 Jun 2016 21:44:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6C7AD28527 for ; Sat, 25 Jun 2016 21:44:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 614BE2852B; Sat, 25 Jun 2016 21:44:21 +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 E1C1B28527 for ; Sat, 25 Jun 2016 21:44:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751886AbcFYVif (ORCPT ); Sat, 25 Jun 2016 17:38:35 -0400 Received: from mail-pa0-f67.google.com ([209.85.220.67]:33659 "EHLO mail-pa0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751854AbcFYVi3 (ORCPT ); Sat, 25 Jun 2016 17:38:29 -0400 Received: by mail-pa0-f67.google.com with SMTP id ts6so11972286pac.0; Sat, 25 Jun 2016 14:38:28 -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=Q5SxDNOvS4M+WpsNu0MzwPc7dlKsxZPMKQDpKh1sC2k=; b=rBjrlAUl9dr6HBODUiJWiMXpf34vdsLY1Dm0V9JbZ4CoWTkQp0hSh5eXdedCeP4f0f HQXxUaC7e9JrYXK8Mh2JdYn5qk/pBFZrOHcGd5tQYDVk4ETpjY6g3+4v25S762ZipxMi M7R5Y4674n34TMD9Jb+EYyAVYTRVAXvHvaE6AD3xyBOqgNgMkfBzuN4xvql5MX+PYp7/ CHXiW+cg85w39EEszWlH48xLYC6rBMtjKvR6u8mdWAlivO01+S0SclXkeoMfZm/YlOuN SZAV6xGhsxNDJz7rm5psJD6SWcwO3/5bWaR8cxQdsoB+Vth9X7enH1CBpYI7YhOzwYm9 JY9Q== 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=Q5SxDNOvS4M+WpsNu0MzwPc7dlKsxZPMKQDpKh1sC2k=; b=eY3I9eQ7Fa/VOd+k1UwThLzLRLE5RYWUweRXD6W0Z4STWrRdziIUVuk7FOPsxQS1KP sxjJkV6GpeO6moSP7Spdt7FeuQNETB+DPrj2xyqvk17spj9Vq/pbDH+bm0O7Jp5pP/xS 9A36iJ9af8wpttBFwZhmbdNxSd/Ni5L2CowHRERsjqB/TBmX2wf5s0j2JzcZ4j88/u9t A9fN4t7zPht6KP/MPGRmJ00TUqG32yoDbeGZ/xioVqOykRzSh1K1IEOuCMm6rR8sfwzz Z2xT4NwTaNrdgCXOw8HT5aeJTGWKo4hS2rYkWYgx3pwYhWTMGnndQGpDGgwZAGXXGeHD 9Btg== X-Gm-Message-State: ALyK8tKk2pbp6L649c4F50yZu9/o8O55HslMvKUtTkEdyWIn4ioIQ0rbWhco6jxjbBSQkQ== X-Received: by 10.66.67.1 with SMTP id j1mr19628843pat.57.1466890708364; Sat, 25 Jun 2016 14:38:28 -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 m8sm1861308pfi.27.2016.06.25.14.38.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 25 Jun 2016 14:38:26 -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 v3 06/24] fs: jfs: Replace CURRENT_TIME_SEC by current_time() Date: Sat, 25 Jun 2016 14:37:30 -0700 Message-Id: <1466890668-23400-7-git-send-email-deepa.kernel@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1466890668-23400-1-git-send-email-deepa.kernel@gmail.com> References: <1466890668-23400-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 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);