Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1767337ybl; Sun, 18 Aug 2019 10:01:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqy4UOmXezdNxPM6KHtHNOLQxHyp2JtGG9vtD/pFJ8RtSmDGMHuT6aYJ3Wbxo6H5cqUoxWca X-Received: by 2002:a17:90a:9905:: with SMTP id b5mr17470993pjp.70.1566147666911; Sun, 18 Aug 2019 10:01:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566147666; cv=none; d=google.com; s=arc-20160816; b=q6wCKeOkRempdHw+5FDy+pY0Y52SGpTyuIHUhVLdqtdzdXR6ClMuqhHMrZF8AgyIFb SLHEACsHBlV8cbUKrl4yJxi72nyEvskrkYIs/O7Rh5WRrxLI7yqEkP06+h9qOJZN9ORW /SsdeHpD5yQF0tnZdyO6WL3gQQ23iVnFW7rQ63Nm3XdaR4cC+W4wjR8rxg/gXgbDwqZo edYV1TQ4orT7dOSiV9Q90fYu1JzMcxM9FlDl13SUPibJ1BDDCu1OVa6U1kw/sFLBMCzI vy6h983ugAdaHopW0oP8X4JR262eVPErUGSFmP9UtRO2tK6H3gSs7S8I/1sqCVCsiwMv M+Dw== 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=PKw1Reaa5TmEbOw42WOoOkgcDeqB9651JZOEzKssiunz0cL2yOyUE6W+4qdybk9A9J pmxHdXF+8DC1cAxBRvtvOGnVNPfbG0wonjFxquHqNxXN55xIiFSspYKg/mOGzeK0DofT gxwvalHLxJzpeEkXSa4PzoFKbwQ25sGj+JE5otSQ8U0qZmMVmhArjvSvVpEAEU4+/rN+ cJaar+CyYkB8ajjdipg47+u4qY7Mz7u3yCIZvdQ95ZqAw9kvU0ow2lLhlKHRxB4g6i4Q EMIOYm3VUcScmJSzDHMfNJAvjo8Qw6qxaSCuWcchcPrGssZuHK2+IV6uQI4ZVLSimlK+ YDgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=u0p1xnlW; 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 m5si8079450plt.167.2019.08.18.10.00.52; Sun, 18 Aug 2019 10:01:06 -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=u0p1xnlW; 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 S1727100AbfHRQ7u (ORCPT + 99 others); Sun, 18 Aug 2019 12:59:50 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:43599 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727107AbfHRQ7t (ORCPT ); Sun, 18 Aug 2019 12:59:49 -0400 Received: by mail-pl1-f195.google.com with SMTP id 4so4618476pld.10; Sun, 18 Aug 2019 09:59:48 -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=u0p1xnlWIscokdPFGB1xYyyYkHxHQ1EL+oy8mcZPSMZFggyqqZZ0F9/0+kW22duHD/ 8ju4CMdUcg5dqW8NFvrLjqsPO+3+tcTuwk/zJhzsiYRNobzXm67Xt4msC8U7Gs2RrvU/ JTyWeqsdkz6Bd3Mer0vl5GbuRd4FHNEKuREypUk8XTJDC5gE68zNpQzwDj2hnam9Ow30 WEohjyeaEX/tYbtjEMkgHqo8Mt2G5ijBEH8TXthmxHiahwTHkqtFUQmCuGyvxIXPhdRD DZo4MpwSedXBGn7w9nPknrg5pDuKae2X+zorJK7HyvQ2p4xWml8IVwIv/Y69Byr8lTb+ Ajdg== 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=qkmSRFCXFNkjp8zPk0XkPP59LeSlXs/nUSY13epvHVSrOXehjYhvDMhJ0lo0PdXz+z 2o1iwuubiWJnjgns/KDuOwDWYPAFXOfk9z4rFVKYbPXLcgiXx+fmlS+9XJ7loiQiXUfH UOvrLC8Yjj6vavEsU1MvWFPWYqk9oXNt8Y925/ZAQXFRyHgHz40u6JcrEDpiBK4czqEr CwcXWqEB2oQRNi0bD6KlT1IDXyTpgYN5K+04xlK8zg4phSFyHrlXiGhDfcGFR5G573uR neCK64IU1daMG71stDa1lYSdHGl2eWS0tETvGQUk45rXRmkUOTEZVvjDXhEA/nLn5xlC XmdA== X-Gm-Message-State: APjAAAWPlvc/Ctb+3F4r2QQPDkmH9pdmkCDUJGwmp3TtNbHV4nefTUmC Ui2dA2nI2UVipV1co1f2R64= X-Received: by 2002:a17:902:e406:: with SMTP id ci6mr18220361plb.207.1566147588404; Sun, 18 Aug 2019 09:59:48 -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 b136sm15732831pfb.73.2019.08.18.09.59.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Aug 2019 09:59:48 -0700 (PDT) From: Deepa Dinamani To: viro@zeniv.linux.org.uk, linux-kernel@vger.kernel.org Cc: linux-fsdevel@vger.kernel.org, y2038@lists.linaro.org, arnd@arndb.de, ericvh@gmail.com, lucho@ionkov.net, asmadeus@codewreck.org, v9fs-developer@lists.sourceforge.net Subject: [PATCH v8 07/20] 9p: Fill min and max timestamps in sb Date: Sun, 18 Aug 2019 09:58:04 -0700 Message-Id: <20190818165817.32634-8-deepa.kernel@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190818165817.32634-1-deepa.kernel@gmail.com> References: <20190818165817.32634-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