Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1767711ybl; Sun, 18 Aug 2019 10:01:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqzq8lrwNPraOVp46CJvOR89VE48o6Hq/PsODyYlzkBHbAyq2m/VmIyeX2subXZEVRCtlj+n X-Received: by 2002:a63:c013:: with SMTP id h19mr16515815pgg.108.1566147690463; Sun, 18 Aug 2019 10:01:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566147690; cv=none; d=google.com; s=arc-20160816; b=TN2aTPkmDSKjS9k4PkvYVdiYXhePDXF/EVIDqi0Oe0V3SeKXvfrTpJorCH9AdeBBiP yAL3RE1W+RtUs3bK/E5j08hDcgDTMlsq52STiM7HlcQgjI4lqBph9Tc9tAZKr0AIqo80 6OTnNs6lAhHKIhi/ptKaofVgfn8mAE01N9wd1HYKb9XkJKzr/wky98w9BludHuPHRl5P DfDFnv9aPVPhJTc/2L+mi+cMCThl0LjwWdMsh2QDuwwBtnI0CzKjg4KsDBKmH4nDGPB5 N0pUbGukpCPwrQcEpjJsKQmFWvRZJLBXJPDZSEd0sufO1ubDvrSPN4gQBEqZAKYhg1T4 o6Cg== 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=Yus3UESewstQeP6xBqn0c8tU9AnJsLA523aHx91as5s=; b=QzliKaxvtKMdkZx4nM3psYx4iUKwqmOTc1hsXpa3QuC9ILodTqLWYA2WNj3WJ86Ryn yxAFxnye9yzx8C27/o1kNZUdXokUcnvTU1iG+WfnM3xXJAAa1xHYeisbmXtu1juuPWIE 6c9157k4hH516i5bnikNrKJt4DKDDPLYdm5o1pSFibT0/FkG8WEQqY6neiDCpHhnkllu 8KHve7Q6UGy3tlKDNUCDItZkydoD7c2yAKuSq+9wNev+cYtWPpAdkg5auYJ8Tzx+dSur Su9Unkfdiqd5ZuP+hqxUnDswq5ZLPlJNr+DA2zOxLADCb6rgyenjwO2AVYzce+T2sSVY m8WQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bzG6Ys9M; 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 g62si8936832pfb.219.2019.08.18.10.01.16; Sun, 18 Aug 2019 10:01:30 -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=bzG6Ys9M; 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 S1727216AbfHRRAE (ORCPT + 99 others); Sun, 18 Aug 2019 13:00:04 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:46179 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727182AbfHRRAB (ORCPT ); Sun, 18 Aug 2019 13:00:01 -0400 Received: by mail-pf1-f195.google.com with SMTP id q139so5701093pfc.13; Sun, 18 Aug 2019 10:00:00 -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=Yus3UESewstQeP6xBqn0c8tU9AnJsLA523aHx91as5s=; b=bzG6Ys9MB8EB/SIiNm1O90+0fRmj7AmkXhOlkEZgA2BAesZ0uHBfgMNz1jtKbxVp5g 36SUBW4JMGzSQyQjYdgSOqYzYlxv+uWeVoEAIG5gmgaPI6uutfmBTGB1pA/qbbuDTfXV qKNJ+Fb9016L1xeg3QvFgCIFy4yem+zUSAIbQVVTODOmPQsawouPuRi8aEP5aRVcLDrE b3zfL9hDv0DWcJ7p87GiuOFWR86S3tfcu90wsAbuspJa3ux6zdJ6hD75QxDfS//tp3vZ RALHTIESSx3hRb/bvcBpZRUNAeq4zz6RqzNLmat+LatBMu+wpsW6a9XtC+pwY3E1N1tK FAew== 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=Yus3UESewstQeP6xBqn0c8tU9AnJsLA523aHx91as5s=; b=OJopcZIUkGZQDjNcKceVvTlDNh49d5Kako87RQLXoqLyDIAcKGGhFJLb0r7bjXEzwU cqBjOLhdYZ0RCoEn5wv+gp350dzvIvsk1jVDfJJsVkK4+vNWdVcEWcOQbNd+5UvWDqBd 4pJ774xG/Og7RCFXLC99kiCExMGcm8taCTBSMk10LQKnsbD1h7XMugaiHFYgwkduQ79x 28ZVIbOyHO5BgayhmZT7Ztk9DdFmSxjI5sSr1t7BDo4OEp6x1vmtq/UMtFh+zuTjCV1F 0iT17fdwcPfvPg7Dm731J+9Iau0w/KE8uo8u3ls0ELCMBNkeoI1Qm5dNhOfkvOfHKCSc 1HuQ== X-Gm-Message-State: APjAAAWqdw+BhSKxVEPu7TJu/xK+XCN1TN5dyGLBv8D1W5babWV45ySp Ua/Li7lqxgIV8+00s0QE6Rc= X-Received: by 2002:a65:6415:: with SMTP id a21mr15511088pgv.98.1566147600079; Sun, 18 Aug 2019 10:00:00 -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.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Aug 2019 09:59:59 -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, hch@infradead.org Subject: [PATCH v8 14/20] fs: sysv: Initialize filesystem timestamp ranges Date: Sun, 18 Aug 2019 09:58:11 -0700 Message-Id: <20190818165817.32634-15-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 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: hch@infradead.org --- fs/sysv/super.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fs/sysv/super.c b/fs/sysv/super.c index d788b1daa7eb..cc8e2ed155c8 100644 --- a/fs/sysv/super.c +++ b/fs/sysv/super.c @@ -368,7 +368,8 @@ static int sysv_fill_super(struct super_block *sb, void *data, int silent) sbi->s_block_base = 0; mutex_init(&sbi->s_lock); sb->s_fs_info = sbi; - + sb->s_time_min = 0; + sb->s_time_max = U32_MAX; sb_set_blocksize(sb, BLOCK_SIZE); for (i = 0; i < ARRAY_SIZE(flavours) && !size; i++) { @@ -487,6 +488,8 @@ static int v7_fill_super(struct super_block *sb, void *data, int silent) sbi->s_type = FSTYPE_V7; mutex_init(&sbi->s_lock); sb->s_fs_info = sbi; + sb->s_time_min = 0; + sb->s_time_max = U32_MAX; sb_set_blocksize(sb, 512); -- 2.17.1