From patchwork Wed Feb 3 06:07:49 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Deepa Dinamani X-Patchwork-Id: 8198501 Return-Path: X-Original-To: patchwork-linux-fsdevel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 3CDB3BEEE5 for ; Wed, 3 Feb 2016 06:13:17 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 67882201BB for ; Wed, 3 Feb 2016 06:13:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8F1CD20172 for ; Wed, 3 Feb 2016 06:13:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756036AbcBCGM4 (ORCPT ); Wed, 3 Feb 2016 01:12:56 -0500 Received: from mail-pa0-f67.google.com ([209.85.220.67]:36682 "EHLO mail-pa0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933429AbcBCGMK (ORCPT ); Wed, 3 Feb 2016 01:12:10 -0500 Received: by mail-pa0-f67.google.com with SMTP id y7so509713paa.3; Tue, 02 Feb 2016 22:12:10 -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=i9UzuB9dO2ZMv9SrLnw6KLmUTs2Srq8VUsiClNa4G9k=; b=OORNZbVKTVIX/wikwbD6jbT7JltRz5j/maBtCdGRQxkP9R0Ro/9xAajfwFrYvtv9Q2 QB+fOMXmhB6gPMTygLqc760G1OoznK4PFIwUofkxs+GOiPvOBSjv06izr6sH6f1GlG3A u/zVvg/gP+eFLx2mFpSL5E9rvD83KSQRb0FkAUtsQIYNeTMj/2q6+AGQERfTLUn69Yda rJ9TuTGymTxy/Qe5hvib6JBUFD77mIi7f2YQIrOV3FAaHDDhjl8f1X6+Pwk/FOS+DLYK HppdczYJ1eFrm0RtuENP3HciXYKSmpyQyi8UbxGejmHNOnh+aIaC7VMEw+7xsxy4FGn3 leeA== 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=i9UzuB9dO2ZMv9SrLnw6KLmUTs2Srq8VUsiClNa4G9k=; b=L4o4sa+zt2PM/vD2I6WEm+W8dnkAc3uhbOn7NVu7/JVFStTYH8LGe6Iy6kj/nGDX8S jcHJj+cFuGg/jGRJIgl2RA/i5gOBh4Oc36+6dyfda8jMQ/7wlMo0VjEjPGpJdCwKPgKG eaMUFFxRUKnJJqnmaLRfr0ukhgPTCgMDQowGQTcUoYGwjCTsbw2sH1wNZNeVsPpbdf5B P+9wKVO/hJKiZabk7mdSiT2ArGiLH5+w9YI9tA4Ze/YHK3WJnpTBq1kXnEHL7/smA9zZ 0ctTW5LcZlfIyqdUNyptbthZe2dP6/wfftAhn+umDxHk5//aimz0mXUdxvuGi0y/vo57 BpmQ== X-Gm-Message-State: AG10YOR7YLlEOkYtDtnn9LSfHXGhajWv7cNbm+8epKr+v9Y+XVAXDp5orqBTrVY0R/bYCg== X-Received: by 10.66.141.229 with SMTP id rr5mr53894772pab.123.1454479930239; Tue, 02 Feb 2016 22:12:10 -0800 (PST) Received: from localhost.localdomain ([106.51.31.224]) by smtp.gmail.com with ESMTPSA id kw10sm6817612pab.0.2016.02.02.22.12.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 02 Feb 2016 22:12:09 -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, "Yan, Zheng" , Sage Weil , Ilya Dryomov , ceph-devel@vger.kernel.org Subject: [PATCH 09/10] fs: ceph: Replace CURRENT_TIME by ktime_get_real_ts() Date: Tue, 2 Feb 2016 22:07:49 -0800 Message-Id: <1454479670-8204-10-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 This is in preparation for the series that transitions filesystem timestamps to use 64 bit time and hence make them y2038 safe. CURRENT_TIME macro will be deleted before merging the aforementioned series. Filesystems will use current_fs_time() instead of CURRENT_TIME. Use ktime_get_real_ts() here as this is not filesystem time. ktime_get_real_ts() returns the timestamp in ns which can be used to calculate MDS request timestamp. Signed-off-by: Deepa Dinamani Cc: "Yan, Zheng" Cc: Sage Weil Cc: Ilya Dryomov Cc: ceph-devel@vger.kernel.org --- fs/ceph/mds_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c index e7b130a..348b22e 100644 --- a/fs/ceph/mds_client.c +++ b/fs/ceph/mds_client.c @@ -1721,7 +1721,7 @@ ceph_mdsc_create_request(struct ceph_mds_client *mdsc, int op, int mode) init_completion(&req->r_safe_completion); INIT_LIST_HEAD(&req->r_unsafe_item); - req->r_stamp = CURRENT_TIME; + ktime_get_real_ts(&req->r_stamp); req->r_op = op; req->r_direct_mode = mode;