From patchwork Wed Feb 3 06:07:47 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Deepa Dinamani X-Patchwork-Id: 8198521 Return-Path: X-Original-To: patchwork-linux-fsdevel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 2A6BC9F4DD for ; Wed, 3 Feb 2016 06:13:32 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5C16D201BB for ; Wed, 3 Feb 2016 06:13:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 793F120172 for ; Wed, 3 Feb 2016 06:13:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933444AbcBCGME (ORCPT ); Wed, 3 Feb 2016 01:12:04 -0500 Received: from mail-pf0-f195.google.com ([209.85.192.195]:33886 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933429AbcBCGMA (ORCPT ); Wed, 3 Feb 2016 01:12:00 -0500 Received: by mail-pf0-f195.google.com with SMTP id 65so539082pfd.1; Tue, 02 Feb 2016 22:12:00 -0800 (PST) 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=6Au76rsyTBK1Bf0QAjrHMgpImWrDYp3VLALplFq47bI=; b=YDxg1LVDvH1XC1eDtiHXjLBozWv3AnDa0xo6OELlQJI92ahu7XVTkZqkHLkkRoXFJK Qn6qU+Ot762ZQ0d8UTSqe0/ZD7sqhG5QsXL7hNRn6uKZgykAKH/N9EsP82gr1vyw+OGv RZqmHlSSDaUxe+USjROYTxq8FZ60EtlHGTUW9oQnOV4NYU/9rWdsQV9z3YaMkCBKKQDi hCcgoGTZeRUOj/neOAMNeYXZ6Q2FqAlYlGRzWLuCAzBymDgSztP5RncVZ9GJcoiDArQK XEq5WnZXDPuZOxpoLmFGd8doqgFknVXtqB/HX5ZYCaF0cQ4G/Exl3CICSEbuAZ6XtFYg F66g== 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=6Au76rsyTBK1Bf0QAjrHMgpImWrDYp3VLALplFq47bI=; b=mYhjKkE/XYXkriDDCR1J18EPcr94/C8vWien/VUTIxyJhzbOwLUXMMgyFq0RGXrrSg pwp02sXXCoGRZCpnQ/4OKAphbt1B3dSgGgoDq/o2wMWKR/R7LX/DJZn7PEDlbwDTwb90 6bmkkACnKoNDTab36n3C0h5iWmeJkfcE+cz8ANTI6PXyCnBK1q1J8/oGaP7GkOSq3ebd GNZScgzZHFaoGkVs/KSteqhA8zQJB2x0beS6E0yewew9l1rZbgcacjWKZCPrZz1lIjSF NTFSWOAUqISBdv9tK8EKQDmLD3ZaETseFYUu0EzZPxMzrl5Mzth7B5PuKiHTMcUNmKwk OzzA== X-Gm-Message-State: AG10YORy51Wih/dI6D5yR8K2b824oBgCJzUKHsFtkKZis9/USLZQ5NXmehRnnfXdGmWXzA== X-Received: by 10.98.0.7 with SMTP id 7mr53768872pfa.5.1454479920014; Tue, 02 Feb 2016 22:12:00 -0800 (PST) Received: from localhost.localdomain ([106.51.31.224]) by smtp.gmail.com with ESMTPSA id kw10sm6817612pab.0.2016.02.02.22.11.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 02 Feb 2016 22:11:59 -0800 (PST) From: Deepa Dinamani To: linux-fsdevel@vger.kernel.org, y2038@lists.linaro.org Cc: Arnd Bergmann , Dave Chinner , "Theodore Ts'o" , linux-kernel@vger.kernel.org, Andreas Dilger , linux-ext4@vger.kernel.org Subject: [PATCH 07/10] fs: ext4: Replace CURRENT_TIME with ext4_current_time() Date: Tue, 2 Feb 2016 22:07:47 -0800 Message-Id: <1454479670-8204-8-git-send-email-deepa.kernel@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1454479670-8204-1-git-send-email-deepa.kernel@gmail.com> References: <1454479670-8204-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-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP CURRENT_TIME macro is not appropriate for filesystems as it doesn't use the right granularity for filesystem timestamps. Use ext4_current_time() instead which is appropriate for ext4 timestamps. Signed-off-by: Deepa Dinamani Cc: "Theodore Ts'o" Cc: Andreas Dilger Cc: linux-ext4@vger.kernel.org --- fs/ext4/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 3ed01ec..5e6c866 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -5139,7 +5139,7 @@ static int ext4_quota_off(struct super_block *sb, int type) handle = ext4_journal_start(inode, EXT4_HT_QUOTA, 1); if (IS_ERR(handle)) goto out; - inode->i_mtime = inode->i_ctime = CURRENT_TIME; + inode->i_mtime = inode->i_ctime = ext4_current_time(inode); ext4_mark_inode_dirty(handle, inode); ext4_journal_stop(handle);