Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4202673ybi; Mon, 29 Jul 2019 21:30:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqzzQL1TGr9u1jdGd42tAbfIvH08vmMOxr8Vq4imT0eMOGdc814ybUQaHWAvAtfZIn2DoFRJ X-Received: by 2002:a17:90a:23a4:: with SMTP id g33mr118537290pje.115.1564461022538; Mon, 29 Jul 2019 21:30:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564461022; cv=none; d=google.com; s=arc-20160816; b=lucsBLTLlQtApWsAP9g7E05Rp7Osf9LGVIRQqLjcMkToI77XgSsZ9O/awxQzzbxNLY Pk5L90Jh9uUwWdY9iYM0ikD8M0uvjrWu/A0EYVXcRYiGb9W599gbByLFqcroziAudTOv oUGmTg9tqOYYUfWNTTJ4K4mHfzQ/ExqKsUACSNctkV0F4sPfn3BIhvufIeLxbKLXT2vF p4P7KPjJnipsuhqKbNrPIl50aMtZOoM4V2FV7FLl4CjQCmteqlY9IKXhyg+fjJcY7bOg KmQIASGEiMMv4GiJIDPxSI5/jIvoG00NhJ5nk70WiMGsaA/gpS8FbUcqqj7BKVDkiGeI xAAA== 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=1RF9tSxg4ftPaCa44wQSYVO8OxIT8+s62dDQIN7bX2o=; b=lhofnlpMUl1c8qN5z/w5c8N43e5AKxEpxLy55wsJNVlkc8yGEoZ9ncc0RJC2JDxGG+ igJ3sX5LbAyCYWIqxJ1jlYT+Yea+g0Otgb+NGH5hJloT6YwkztxjoncoPAQJOsxkfw7q HItpTbk60NYeGzwbblVxrdaJdKNZ6QxXZwOi1IHRYY59upvJbBN6Nu+dO7bnQdp/JwVG 2ihnO3Ez07mMibxAfUufqjZMqjFewoWYXsA5aT2/cF56YcswmTGqGZTTvGSe2siu7ror I1hVyXj+Hckl/4mraQ8jGEzLco9lX00joXNh7DJlAlqye9Sdmf42Uq3JK9AyBhvICAZZ YNcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=iEU9KPKE; 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 p4si27956840pgh.350.2019.07.29.21.30.06; Mon, 29 Jul 2019 21:30:22 -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=iEU9KPKE; 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 S1730993AbfG3BvF (ORCPT + 99 others); Mon, 29 Jul 2019 21:51:05 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:37831 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730909AbfG3Buj (ORCPT ); Mon, 29 Jul 2019 21:50:39 -0400 Received: by mail-pl1-f196.google.com with SMTP id b3so28239426plr.4; Mon, 29 Jul 2019 18:50:39 -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=1RF9tSxg4ftPaCa44wQSYVO8OxIT8+s62dDQIN7bX2o=; b=iEU9KPKEpUOeQc+TDqw/j8EP61bJbMSCI7uNc6Xdq7LWM74Uy1YzbFeoOmrAwxgSNo Ay+T+mES8hCLhp7bAwoC6cNDFauOvqOKRflK8MpN3lRzXW38Qo6IFTbh8Zhz3FkSveuo h+pnt/9QISKNzrEL//VZ6KZp5mmpTnX6FZ0Vgi1PB6wn1B8qQkSdsGK8X5dgHsRTT/Se 9SsWbtD9Abw8gA3Xxi5lzsPoCXgL+5sRVQezJJK8gOTmAyWdPJ1cdqIwdcSXUCQQWL3h mGhI3EpiMtJuauLsd7nYM23xklau+V7734ZHdWkigGIj+iNIxHPEDqWqFKgU1F2nQt3H ZWWA== 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=1RF9tSxg4ftPaCa44wQSYVO8OxIT8+s62dDQIN7bX2o=; b=LYm062RJVh+eTaIIZLex6Z3hqE1h0jiF7sifGVzE30Rb5MdrNXvZlN4cwvPbPa5Tsz DFgU30+Ejbqf8wJaOg5pU2dERBHbUPqwrJ9/dmKLAezw0l/gkUNbhwu1jVfpVGdE2pSN jHSZ40yQ/Z6iuVuabglXhYbcmzvs5VCpZ5mZUnQ+xNLeQ/QC8W+mjYouYn7J1h7ps3M+ 3OsQz4dCaV2sy5OW42/OQfUqrBX/KztW3khrHC2D7g01XmJtBzEYcSVsTKbaLb2slxwL PuC6FXw84BC2cscM82DJfnwk3nGQYHiKtzcY5bJ3qmcdRK6DEWCxi5OiriuPS26WR3a9 8xYA== X-Gm-Message-State: APjAAAW2Phsz2JflbQSTX61/uJttCzTuHEt5sFPIMIHQRV1kWEdlqUyL UOyF8mUM0izVuo4W9qpGm3c= X-Received: by 2002:a17:902:6b81:: with SMTP id p1mr109757855plk.91.1564451438988; Mon, 29 Jul 2019 18:50:38 -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.37 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 29 Jul 2019 18:50:38 -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, me@bobcopeland.com, linux-karma-devel@lists.sourceforge.net Subject: [PATCH 18/20] fs: omfs: Initialize filesystem timestamp ranges Date: Mon, 29 Jul 2019 18:49:22 -0700 Message-Id: <20190730014924.2193-19-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 Fill in the appropriate limits to avoid inconsistencies in the vfs cached inode times when timestamps are outside the permitted range. Signed-off-by: Deepa Dinamani Cc: me@bobcopeland.com Cc: linux-karma-devel@lists.sourceforge.net --- fs/omfs/inode.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fs/omfs/inode.c b/fs/omfs/inode.c index 08226a835ec3..b76ec6b88ded 100644 --- a/fs/omfs/inode.c +++ b/fs/omfs/inode.c @@ -478,6 +478,10 @@ static int omfs_fill_super(struct super_block *sb, void *data, int silent) sb->s_maxbytes = 0xffffffff; + sb->s_time_gran = NSEC_PER_MSEC; + sb->s_time_min = 0; + sb->s_time_max = U64_MAX / MSEC_PER_SEC; + sb_set_blocksize(sb, 0x200); bh = sb_bread(sb, 0); -- 2.17.1