Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp934737imm; Wed, 20 Jun 2018 08:55:17 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJv6paE3Bj5TZ1gB/is3Xp/WvtwksmHetsRcsD2xoEjbYqQGrv8kDjOmGGRnS9cVobtcKS1 X-Received: by 2002:a62:d345:: with SMTP id q66-v6mr23408855pfg.158.1529510117040; Wed, 20 Jun 2018 08:55:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529510117; cv=none; d=google.com; s=arc-20160816; b=wHvq7zS4al7+FaAbhC+KrnGEdzkojoscxFtEqUV6TxQY3RE7uNCetnOHT9vVy409h6 FYLaGq1YqwFjtqFPFHsZustd7GglUEMiaXyFe6dBF0ruZpfT/ckX8L3bRlA0LP7rM8PK C0jiYSC0xejV5ojAS72x/B7Ia6UcPV6dCIeMQlF7jKZAWODkbDtsok1X6Kj54ynrAnfk MwDX2W6UemH7trWugRqL/CJY53lNamXoyDx1BN1QDMMaTs0fTyc3qwpSoapRw0mvk9XJ 4Ljo+j2SnQPh4yhJ8hJVr7bSmcbj+n8H08NAQEPGZNrKo09q4w7wvZZqQ2HzwNha9GGh nQ7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=ckUTe8PwbiQcIP3jUdG4QCTLzdp7RgYdybGxeG7CPcs=; b=veC2qNMBP6Dobkvyv0evryXRbAXGqHtX5j8usWkhXuq+4HTbdwBT7OIXaozvLD1Orp 4jM1rmbZDWwWINUj3GrOG0kT52/2jzguNHMvJcqWT5SDaTGw2XBbo/AlfhfIXlKoBwS/ AUvq2Roa7u8/mXSz6LlFksqoyCQOvq7c8vjsiAtSPFGNCLfSah4lUh8oe9I7K4r/5AfI 13Os2DH7MZzdfgzHteG1Rf+wBGeqLTs+dwE1C7tSVqFPT+1DmoTJy0+yuwT9oLy771Kb XKtEf+hLShcfpWF32lcol4cfGAEgl+6eB0vJEoZ2GYG/rX3JDeMQ1b1SOyw+g9Gs4eYG YshQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j22-v6si2604718pll.353.2018.06.20.08.55.03; Wed, 20 Jun 2018 08:55:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754344AbeFTPxJ (ORCPT + 99 others); Wed, 20 Jun 2018 11:53:09 -0400 Received: from mout.kundenserver.de ([212.227.126.187]:56835 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754504AbeFTPwl (ORCPT ); Wed, 20 Jun 2018 11:52:41 -0400 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue005 [212.227.15.129]) with ESMTPA (Nemesis) id 0M7Wjr-1gRkPb1N6F-00xGMl; Wed, 20 Jun 2018 17:52:36 +0200 From: Arnd Bergmann To: Yan Zheng , Sage Weil , Ilya Dryomov Cc: y2038@lists.linaro.org, ceph-devel@vger.kernel.org, Arnd Bergmann , Deepa Dinamani , linux-kernel@vger.kernel.org Subject: [PATCH 5/5] ceph: use 64-bit timespec for r_stamp Date: Wed, 20 Jun 2018 17:50:37 +0200 Message-Id: <20180620155101.57685-5-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20180620155101.57685-1-arnd@arndb.de> References: <20180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ner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The ceph_mds_request stamp still uses the deprecated timespec structure, this converts it over as well. Signed-off-by: Arnd Bergmann --- fs/ceph/inode.c | 2 +- fs/ceph/mds_client.c | 7 +++---- fs/ceph/mds_client.h | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/fs/ceph/inode.c b/fs/ceph/inode.c index d85f72bd585d..75fd2187833f 100644 --- a/fs/ceph/inode.c +++ b/fs/ceph/inode.c @@ -2135,7 +2135,7 @@ int __ceph_setattr(struct inode *inode, struct iattr *attr) req->r_inode_drop = release; req->r_args.setattr.mask = cpu_to_le32(mask); req->r_num_caps = 1; - req->r_stamp = timespec64_to_timespec(attr->ia_ctime); + req->r_stamp = attr->ia_ctime; err = ceph_mdsc_do_request(mdsc, NULL, req); } dout("setattr %p result=%d (%s locally, %d remote)\n", inode, err, diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c index 580644b04737..09142d309912 100644 --- a/fs/ceph/mds_client.c +++ b/fs/ceph/mds_client.c @@ -1799,8 +1799,7 @@ ceph_mdsc_create_request(struct ceph_mds_client *mdsc, int op, int mode) INIT_LIST_HEAD(&req->r_unsafe_item); ktime_get_coarse_real_ts64(&ts); - req->r_stamp = timespec64_to_timespec(timespec64_trunc(ts, - mdsc->fsc->sb->s_time_gran)); + req->r_stamp = timespec64_trunc(ts, mdsc->fsc->sb->s_time_gran); req->r_op = op; req->r_direct_mode = mode; @@ -2097,7 +2096,7 @@ static struct ceph_msg *create_request_message(struct ceph_mds_client *mdsc, /* time stamp */ { struct ceph_timespec ts; - ceph_encode_timespec(&ts, &req->r_stamp); + ceph_encode_timespec64(&ts, &req->r_stamp); ceph_encode_copy(&p, &ts, sizeof(ts)); } @@ -2190,7 +2189,7 @@ static int __prepare_send_request(struct ceph_mds_client *mdsc, p = msg->front.iov_base + req->r_request_release_offset; { struct ceph_timespec ts; - ceph_encode_timespec(&ts, &req->r_stamp); + ceph_encode_timespec64(&ts, &req->r_stamp); ceph_encode_copy(&p, &ts, sizeof(ts)); } diff --git a/fs/ceph/mds_client.h b/fs/ceph/mds_client.h index 2ec3b5b35067..80a7523e1523 100644 --- a/fs/ceph/mds_client.h +++ b/fs/ceph/mds_client.h @@ -229,7 +229,7 @@ struct ceph_mds_request { int r_fmode; /* file mode, if expecting cap */ kuid_t r_uid; kgid_t r_gid; - struct timespec r_stamp; + struct timespec64 r_stamp; /* for choosing which mds to send this request to */ int r_direct_mode; -- 2.9.0