Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4198936ybi; Mon, 29 Jul 2019 21:25:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqxqr4e5TOOadAxsrzo7Kjd+3OmpmBPsayRJxS7a9Y5kY+Oo8f6bq/fdZ/DefJQH4Gjp+rG4 X-Received: by 2002:a17:902:2ae7:: with SMTP id j94mr113278348plb.270.1564460719904; Mon, 29 Jul 2019 21:25:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564460719; cv=none; d=google.com; s=arc-20160816; b=fjXTkdJiDmyyoyMpvvPRNjm93EIEGjc73/kgrBwqBZBVUvr274p3dyaVh/AXZZd2PR o7go8qB36DMS1f8Ex4NUZqWUZsGa3BVYDx9m8jOy3dFrN5mhMlzNmY+gJ5RQ+28+cIhm iECB4DRwDYEs9z1S+5emLj2ctcdMO85P73KCcARZofykefl7leVcOIexu4MMbxy1KDkd uPaMAzRvvRSbJpcVXRjMEsK7ZaRb7tQ0A1688fDRB6DoJhqgGzkGPb0T6nBGJNMiHCkc 61+DYiJsDOkt6Tvhw2gfHqicXFlZEAdc5XtRa5OdTWpyu9GIFIYo2F6kLB7BGN/+KfGw RV/w== 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:dkim-signature; bh=i+LRMSNrj6ysytmm99Rc/BfD1o0cWeoJWbC6wV2pjKo=; b=N9CgSLFFEDOCZPUErrh7Q+qKNI18+uewNOfCZjibs3RWFe/AtIV08H3xktkksXxIQV 5iHfQJDfNPSIIFmnDb+1ZzjG4cadvmtIDs9SV+syYEZaRPCJWB4nuyakMe8eW1DkYcEC Fc9K/AW4z782U6FcMpALl4JVOYYNcjwqyLBe497ufBDTmbxAYT02Xr1j0BiAfZxvZHHz isJDXTKGDvY3fM6V5T4VK0kKyiIuqx8G/YvjD+62TF1pe6jEdKsASOeZAhq4MQ7wWZfg sYUOeIfUZhXvHvPnqWMopEpL3K9Lhf4tt/c29/o54mnJzSCEwnVjdHtiJ+Li4kAKBhCt xP1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=AOaRnw02; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q18si26253466pll.79.2019.07.29.21.25.05; Mon, 29 Jul 2019 21:25:19 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=AOaRnw02; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730857AbfG3Bu3 (ORCPT + 99 others); Mon, 29 Jul 2019 21:50:29 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:34278 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730844AbfG3Bu2 (ORCPT ); Mon, 29 Jul 2019 21:50:28 -0400 Received: by mail-pg1-f194.google.com with SMTP id n9so22944751pgc.1; Mon, 29 Jul 2019 18:50:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=i+LRMSNrj6ysytmm99Rc/BfD1o0cWeoJWbC6wV2pjKo=; b=AOaRnw02TsiwbCxYhAlzGLg8nzDQpMpWKxAHBFB2a2RvzGYWBZFg5mRgPqCx4Vu/Ln F7AFryz6gakJOc7pt1+Mezu2nTV+CoYiOL0kEEDEplGq85bmjpgLLccmlg+RkfTCu6vA j2pCVHiq3XiXaquRa8YxS9yV/LSwebuWDnGqey3jTN7oa1PMiu5QXpqxjPR5zvMOg8hH LAev1+8dhbQDkV1bVk7/YLZuJXDimbINKT82EOpErLSxfD/z9gYMmjcue8T+bzhmVtTr DC5m/iDWQFAem/S70vYShqEKwYB81IyQocXsx9QoCdZfX8oI2+osvKNsj2t6+8Uh+4ky im8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=i+LRMSNrj6ysytmm99Rc/BfD1o0cWeoJWbC6wV2pjKo=; b=Ly8bwe+btewquGWf+6h6tkbJvPIp1+OnrrDpRS21jjiibwOS8/DJMs2MITkt2CLJsq SOuh6Nb7N+WGYg7wTUhQ4/a2niv7KNY3ZfcUXhizWAyo3IrutQ6/n8vs5VCRkSpGh8AU HG8XLAjo7qDSLrigGq7u3KnVa1BKYgLWJPB0JynFVS3kGSHS/X43iO1A1Ivv8/eT0c5b BYtfgvLOGhXe61wsy0IC11qOAgm7EktchMJ/bJCNd0lkhaq3GFuq9c0gVak/jzpAZP+p G7kyicLuPIGgIClOAgFpEw/2PhlTHdithobliDo3I0t1LJaN7nmk3skJs16NouBvkZM8 EFzw== X-Gm-Message-State: APjAAAWvDNFt6U2iZRpPKcWe/uOC13J2Zm2xS34OMKXfEe53hz2lSdHi KyrvMd8vdAsdsWLkJFTL7cQ= X-Received: by 2002:a63:b747:: with SMTP id w7mr53077423pgt.205.1564451427431; Mon, 29 Jul 2019 18:50:27 -0700 (PDT) Received: from deepa-ubuntu.lan (c-98-234-52-230.hsd1.ca.comcast.net. [98.234.52.230]) by smtp.gmail.com with ESMTPSA id r6sm138807156pjb.22.2019.07.29.18.50.26 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 29 Jul 2019 18:50:27 -0700 (PDT) From: Deepa Dinamani To: viro@zeniv.linux.org.uk, linux-kernel@vger.kernel.org Cc: linux-fsdevel@vger.kernel.org, arnd@arndb.de, y2038@lists.linaro.org, ericvh@gmail.com, lucho@ionkov.net, asmadeus@codewreck.org, v9fs-developer@lists.sourceforge.net Subject: [PATCH 07/20] 9p: Fill min and max timestamps in sb Date: Mon, 29 Jul 2019 18:49:11 -0700 Message-Id: <20190730014924.2193-8-deepa.kernel@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190730014924.2193-1-deepa.kernel@gmail.com> References: <20190730014924.2193-1-deepa.kernel@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org struct p9_wstat and struct p9_stat_dotl indicate that the wire transport uses u32 and u64 fields for timestamps. Fill in the appropriate limits to avoid inconsistencies in the vfs cached inode times when timestamps are outside the permitted range. Note that the upper bound for V9FS_PROTO_2000L is retained as S64_MAX. This is because that is the upper bound supported by vfs. Signed-off-by: Deepa Dinamani Cc: ericvh@gmail.com Cc: lucho@ionkov.net Cc: asmadeus@codewreck.org Cc: v9fs-developer@lists.sourceforge.net --- fs/9p/vfs_super.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fs/9p/vfs_super.c b/fs/9p/vfs_super.c index 08112fbcaece..ca243e658d71 100644 --- a/fs/9p/vfs_super.c +++ b/fs/9p/vfs_super.c @@ -69,8 +69,12 @@ v9fs_fill_super(struct super_block *sb, struct v9fs_session_info *v9ses, if (v9fs_proto_dotl(v9ses)) { sb->s_op = &v9fs_super_ops_dotl; sb->s_xattr = v9fs_xattr_handlers; - } else + } else { sb->s_op = &v9fs_super_ops; + sb->s_time_max = U32_MAX; + } + + sb->s_time_min = 0; ret = super_setup_bdi(sb); if (ret) -- 2.17.1